Ancient Egypt's Middle and New Kingdoms marked periods of reunification, expansion, and cultural flourishing. The Middle Kingdom saw Egypt reunited under Mentuhotep II, with subsequent rulers expanding trade and undertaking major projects. The New Kingdom brought further territorial expansion and artistic achievements. During these eras, Egypt was ruled by divine pharaohs who maintained cosmic order. Society was stratified, with nobles and priests at the top. The economy relied on agriculture and trade, while religious beliefs centered on a complex pantheon of gods. Art and architecture flourished, leaving enduring legacies.