Seth (Set) is the Egyptian god of the desert, storms, and confusion — the necessary outsider: murderer of Osiris, rival of Horus, and yet the only god strong enough to stand at Ra's prow and spear Apophis each night. Egyptian religion never quite demonized him until late: he is chaos put to work, the desert that borders the field, the storm that breaks the drought.
The Pyramid Texts already know him as the murderer of Osiris; as "Lord of Upper Egypt" he pairs with Horus in the earliest schemes of the dual kingship.
The Hyksos rulers at Avaris honored Seth — foreign kings finding a foreigner's god; the Ramesside kings kept him a patron into the New Kingdom (Seti's name means "man of Seth").
Myths
The murder: he trapped Osiris in a fitted coffin and later dismembered the body — Isis' reassembly and Anubis' embalming made the first mummy of the god Seth had killed.
The Contendings of Horus and Seth: eighty years of lawsuits and contests for Osiris' throne — boat races, hippopotamus battles, the trick with the lettuce — ending with Horus enthroned and Seth given a place in the solar barque.
The night shift: in the solar texts Seth stands at Ra's prow to spear Apophis — the killer god's strength spent for order, the myth's plainest statement that chaos has its uses.
Worship & Cult
Cult at Ombos and in the oases; his animals were sacrificed in some rites and tabooed in others, and red-haired men and red oxen were called his.
Iconography
The Set animal — a long-bodied creature with square-tipped ears and a curved snout, never securely identified — crowns the was-sceptre of power; otherwise a man with the animal's head.
Parallels
The desert-margin role is Egypt's own border theology; after the New Kingdom, demonization (Greek writers equate him with Typhon) rewrote the once-honored god as the enemy.