During the Middle Kingdom, Egypt took control of new lands. The pharaoh required tribute, or payments from the conquered peoples. The pharaoh used this wealth to build dams and improve farmlands. The pharaoh also built a canal between the Nile River and the Red Sea.
(Technically they build dams and improved farmlands)