The kingdom also built diplomatic and trade relations with Syria, Palestine and other countries; undertook building projects including military fortresses and mining quarries; and returned to pyramid-building in the tradition of the Old Kingdom.
Middle-Kingdom Egypt pursued an aggressive foreign policy, colonizing Nubia (with its rich supply of gold, ebony, ivory and other resources) and repelling the Bedouins who had infiltrated Egypt during the First Intermediate Period. The kingdom also built diplomatic and trade relations with Syria, Palestine and other countries; undertook building projects including military fortresses and mining quarries; and returned to pyramid-building in the tradition of the Old Kingdom. The Middle Kingdom reached its peak under Amenemhet III (1842-1797 B.C.); its decline began under Amenenhet IV (1798-1790 B.C.) and continued under his sister and regent, Queen Sobekneferu (1789-1786 B.C.), who was the first confirmed female ruler of Egypt and the last ruler of the 12th dynasty.