Originally Osiris was king but set banished him to the underworld. Later, Horus dethroned set and established himself as th rightful king.