Amenemhet III was the last pharaoh of the 12th dynasty to build a pyramid. He was succeeded by his daughter Sobeknefru even though Amenemhet IV co-reigned with him for a period of 9 years.
There is no Egyptian record of Amenemhet IV’s parentage. He is sometimes considered the husband or brother of Sobeknefru. His mummy and his tomb were never found. It is possible that he may be the Moses of the Bible.
Moses was raised in the household of the Pharaoh as the Princess’s own. The Israelite slaves were being forced to make mud bricks and the pharaoh was trying to control the growth of the Hebrew population by killing newborn male babies. Moses somehow retained his Hebrew identity and one day, this caused him to defend a Hebrew slave who was being beaten by a Egyptian task master. He ordered that the Egyptian task master be killed and in so doing made it plain to all where his loyalties lay. When the pharaoh, Amenemhet III found out, Moses-Amenemhet IV feared for his life. He was forced to flea to Midian where he took refuge and met with God for the next 40 years. During this time, Aaron prepared the Israelites to return to promised land while Moses was being prepared to lead them.
After Moses fled to Midian, the 12th dynasty continued for another 10 years until Sobeknefru died. The thirteenth dynasty saw a rapid turn over of pharoahs. When Moses returned at the age of 80 years, a new pharaoh was in charge. This was Neferhotep I.
There would be almost 40 yrs between the death of Amenemhet III and the death of Neferhotep I accounting for the time Moses-Amenemhet IV spent in Midian.
The Israelite oppression really ended when the 12th dynasty ended marking 400yrs in Egypt. The Israelites, however, did not leave Egypt for another 30 years until Moses returned to lead them out of Egypt through the Red Sea.