The success of ancient Egyptian civilization came partly from its ability to adapt to the conditions of the Nile River valley for agriculture.