The Eighteenth Dynasty thus opened with the victory over the invaders by the Thebans. Although the reigns of Amenhotep II (r. 1427–1401/1397 BC) and Thutmose IV (r. 1401/1397–1391/1388 BC) saw considerable royal focus in Memphis, but for the most part, power remained in the south. With the long period of peace that followed, prosperity again took hold of the city, which benefited from her strategic position. Strengthening trade ties with other empires meant that the port of Peru-nefer (literally means "Bon Voyage") became the gateway to the kingdom for neighbouring regions, including Byblos and the Levant.