Khnum (/kəˈnuːm/; also spelled Khnemu) is one of the earliest Egyptian deities, originally the god of the source of the Nile River. His main domains are creation and water, and he is sometimes considered an aspect of Ra. Since the annual flooding of the Nile brought with it silt and clay, and its water brought life to its surroundings, he was thought to be the creator of the bodies of human children, which he made at a potter's wheel, from clay, and placed in their mothers' wombs. He later was described as having molded the other deities, and he had the titles Divine Potter and Lord of created things from himself.

Khnum appeared most often as a man with the head of a ram.He had two main centers of worship, one on Elephantine Island and one in Esna.

One lesser-known aspect of Khnum is that he could be called upon to drive away cockroaches, as written in The Book of the Dead. During the soul's journey to Duat, the Egyptian afterlife, the soul would recite a spell for Khnum's aid in getting past the cockroaches, with the speech “Be far from me, O vile cockroach, for I am the god Khnum”.