The civilization of ancient Egypt was indebted to the Nile River and its dependable seasonal flooding. The river's predictability and the fertile soil allowed the Egyptians to build an empire on the basis of great agricultural wealth. Egyptians are credited as being one of the first groups of people to practice agriculture on a large scale. This was possible because of the ingenuity of the Egyptians as they developed basin irrigation. Their farming practices allowed them to grow staple food crops, especially grains such as wheat and barley, and industrial crops, such as flax and papyrus.
The civilization of ancient Egypt developed in the arid climate of northern Africa. This region is distinguished by the Arabian and Libyan deserts, and the River Nile. The Nile is one of the longest rivers in the world, flowing northward from Lake Victoria and eventually emptying into the Mediterranean Sea. The Nile has two main tributaries: the Blue Nile which originates in Ethiopia, and the White Nile that flows from Rwanda. While the White Nile is considered to be longer and easier to traverse, the Blue Nile actually carries about two thirds of the water volume of the river. The names of the tributaries derive from the color of the water that they carry. The tributaries come together in Khartoum and branches again when it reaches Egypt, forming the Nile delta.
The Egyptians took advantage of the natural cyclical flooding pattern of the Nile. Because this flooding happened fairly predictably, the Egyptians were able to develop their agricultural practices around it. The water levels of the river would rise in August and September, leaving the floodplain and delta submerged by 1.5 meters of water at the peak of flooding. This yearly flooding of the river is known as inundation. As the floodwaters receded in October, farmers were left with well watered and fertile soil in which to plant their crops. The soil left behind by the flooding is known as silt and was brought from Ethiopian Highlands by the Nile. Planting took place in October once the flooding was over, and crops were left to grow with minimal care until they ripened between the months of March and May. While the flooding of the Nile was much more predictable and calm than other rivers, such as the Tigris and Euphrates, it was not always perfect. High floodwaters were destructive and could destroy canals that were made for irrigation. Lack of flooding created a potentially greater issue because it left Egyptians suffering from famine.
To make best use of the waters of the Nile river, the Egyptians developed systems of irrigation. Irrigation allowed the Egyptians to use the Nile's waters for a variety of purposes. Notably, irrigation granted them greater control over their agricultural practices. Flood waters were diverted away from certain areas, such as cities and gardens, to keep them from flooding. Irrigation was also used to provide drinking water to Egyptians. Despite the fact that irrigation was crucial to their agricultural success, there were no statewide regulations on water control. Rather, irrigation was the responsibility of local farmers. However, the earliest and most famous reference to irrigation in Egyptian archaeology has been found on the mace head of the Scorpion King, which has been roughly dated to about 3100 BC. The mace head depicts the king cutting into a ditch that is part of a grid of basin irrigation. The association of the high ranking king with irrigation highlights the importance of irrigation and agriculture to their society.
Egyptians developed and utilized a form of water management known as basin irrigation. This practice allowed them to control the rise and fall of the river to best suit their agricultural needs. A crisscross network of earthen walls was formed in a field of crops that would be flooded by the river. When the floods came, the water would be trapped in the basins formed by the walls. This grid would hold water longer than it would have naturally stayed, allowing the earth to become fully saturated for later planting. Once the soil was fully watered, the floodwater that remained in the basin would simply be drained to another basin that was in need of more water.
Orchards and gardens were also developed in addition to field planting in the floodplains. This horticulture generally took place further from the floodplain of the Nile, and as a result they required much more work. The perennial irrigation required by gardens forced growers to manually carry water from either a well or the Nile to water their garden crops. Additionally, while the Nile brought silt which naturally fertilized the valley, gardens had to be fertilized by pigeon manure. These gardens and orchards were generally used to grow vegetables, vines and fruit trees.
The Egyptians grew a variety of crops for consumption, including grains, vegetables and fruits. However, their diets revolved around several staple crops, especially cereals and barley. Other major grains grown included einkorn wheat and emmer wheat, grown to make bread. Other staples for the majority of the population included beans, lentils, and later chickpeas and fava beans. Root crops, such as onions, garlic and radishes were grown, along with salad crops, such as lettuce and parsley.
Fruits were a common motif of Egyptian artwork, suggesting that their growth was also a major focus of agricultural efforts as the civilization's agricultural technology developed. Unlike cereals and pulses, fruit required more demanding and complex agricultural techniques, including the use of irrigation systems, cloning, propagation and training. While the first fruits cultivated by the Egyptians were likely indigenous, such as the palm date and sorghum, more fruits were introduced as other cultural influences were introduced. Grapes and watermelon were found throughout predynastic Egyptian sites, as were the sycamore fig, dom palm and christ's thorn. The carob, olive, apple and pomegranate were introduced to Egyptians during the New Kingdom. Later, during the Greco-Roman period peaches and pears were also introduced.
Egyptians relied on agriculture for more than just the production of food. They were creative in their use of plants, using them for medicine, as part of their religious practices, and in the production of clothing. Herbs perhaps had the most varied purposes; they were used in cooking, medicine, as cosmetics and in the process of embalming. Over 2000 different species of flowering or aromatic plants have been found in tombs. Papyrus was an extremely versatile crop that grew wild and was also cultivated. The roots of the plant were eaten as food, but it was primarily used as an industrial crop. The stem of the plant was used to make boats, mats and paper. Flax was another important industrial crop that had several uses. Its primary use was in the production of rope, and for linen which was the Egyptians' principal material for making their clothing. Henna was grown for the production of dye.
In ancient Egypt religion was a highly important aspect of daily life. Many of the Egyptians' religious observances were centered on their observations of the environment, the Nile and agriculture. They used religion as a way to explain natural phenomena, such as the cyclical flooding of the Nile and agricultural yields.
Although the Nile was directly responsible for either good or bad fortune experienced by the Egyptians, they did not worship the Nile itself. Rather, they thanked specific gods for any good fortune. They did not have a name for the river and simply referred to it as "River". The term "Nile" is not of Egyptian origin. 
The Egyptians personified the inundation with the creation of the god called Hapi. Despite the fact that inundation was crucial to their survival, Hapi was not considered to be a major god. He was depicted as an overweight figure who ironically made offerings of water and other products of abundance to pharaohs. A temple was never built specifically for Hapi, but he was worshipped as inundation began by making sacrifices and the singing of hymns.