Osiris was the god who was responsible for flooding in Nile River causing their lands to get fertile. The other major god in that culture was "Sun" who again was important for their crops.
These two examples show that agriculture was of such importance to Egyptians that the religious beliefs also were built around the phenomenon.