The Heretic Queen by Michelle Moran.
The winds of change are blowing through Thebes. A devastating palace fire has killed the 18th dynasty’s royal family—all with the exception of Nefertari, niece of the reviled former queen Nefertiti. The girl’s deceased family has been branded as heretical, and no one in Egypt will speak their names. A relic of a previous reign, Nefertari is pushed aside, an unimportant princess left to run wild in the palace. But all of this changes when she is taken under the wing of pharaoh’s aunt, and brought to the Temple of Hathor where she is educated in a manner befitting a future queen.
Soon Nefertari catches the eye of the crown prince, and despite her family’s history, they fall in love and wish to marry. Yet all of Egypt opposes this union between the rising star of a new dynasty and the fading star of an old, heretical one. While political adversity sets the country on edge, Nefertari becomes the wife of Ramesses the Great. Destined to be the most powerful pharaoh in Egypt, he is also the man who must confront the most famous exodus in history.