Homosexual and Bisexual relationships have existed in between Hindu gods. The sexual relationship between the gods were considered ritualistic and not as a sexual pleasure. The Agni – the fire god was married to both goddess Svaha and male moon god Soma. Hinduism emphasises that Agni represents a feminine role.
Agni has same-sex sexual encounters that involves accepting semen from other gods. Accordingly, in the text of Kathasaritsagara of 11th century, it is mentioned that Shiva forced Agni to receive his semen. The semen causes a burning sensation so it was dropped into the river Ganges; and Kartikeya was born for Shiva.