it became a royal residence after shoshenq i, the first ruler and founder of the 22nd dynasty, became pharaoh in 943 bc. bubastis was its height during this dynasty and the 23rd. it declined after the conquest by cambyses ii in 525 bc, which heralded the end of the saite 26th dynasty and the start of the achaemenid empire.