The Old Kingdom in Egypt weakened as pharaohs lost power and fought for control. The Middle Kingdom that followed also lasted only a few hundred years before being invaded by the Hyksos people, who used chariots to defeat Egyptians. However, the Egyptians eventually fought back and drove the Hyksos from Egypt. During the powerful New Kingdom that followed, Egypt expanded its empire and became extremely wealthy and influential through developments in art, writing, trade, canals, and temples.