In Hinduism the god Vishnu took the form of a four-armed humanoid with the head of a boar named Varaha in order to save the Earth from a demon who had dragged it to the bottom of the sea.
The Celts had a god of swine called Moccus, who under Roman occupation was identified with Mercury. In Celtic mythology, a cauldron overflowing with cooked pork was one of the attributes of The Dagda.
In Christianity the book of Mark, in an event referred to as the exorcism of the Gerasene demoniac Jesus casts the demons Legion possessing a swine herder from Gerasene; into 2000 of the swine herders pigs.