Ay was the 27th king of the 13th Dynasty. He ruled Egypt from 1664 till 1641 BC. The king did not have any royal blood. He was from Avaris, a city located in Eastern Delta that was heavily populated with Heksus. The Heksus are the Asiatics who controlled Northern Egypt till 1500 BC. Ay built his pyramid near Avaris but only ruins remain from his temple.