Religion in Egypt was a tool which taught people to live an orderly way of life. It also taught obedience to the law and to the crown. Heka is the fundamental belief of Egyptian religion and it means enchanted magic which is all pervasive in this universe and Heka is the god of magic and medicine.
The Egyptian gods are seen as the in charge or the custodian of order. Out of chaos came an order. Egyptians believe that their gods have bestowed them with enough resources and it is the duty of the people to praise the gods as their benefactors. All natural sources are associated to a god in ancient Egypt.