The short answer
When people ask about “the 12 gods in Buddhism,” they are usually referring to the Twelve Devas (Japanese: Jūni-ten), a group of guardian deities honored in Japanese esoteric Buddhism, especially in the Shingon school. Most of them originated as gods of ancient India and were later adopted into Buddhism as protectors of the teachings. There is no universal list of twelve gods accepted by all Buddhists, so the answer depends on the tradition.
What a deva is in Buddhism
Deva is a Sanskrit word often translated as “god” or “celestial being.” In Buddhism, devas are not creators and not objects of ultimate worship. They are beings who have been reborn in heavenly realms through good karma, and who remain within the cycle of rebirth. Many are described as long-lived and powerful but still impermanent. Some are portrayed in the texts as listening to the Buddha’s teachings or as protectors of the Dharma. For how these realms are described, see the Buddhist name for heaven.
The Twelve Devas
The usual list in Japan, with the Sanskrit origin of each in parentheses, is as follows. Names and spellings vary a little between sources.
- Taishakuten (Indra): king of the gods.
- Bonten (Brahma): a high deity associated with the heavens of form.
- Katen (Agni): the fire god.
- Enmaten (Yama): the lord of death and judge of the dead.
- Rasetsuten (Nirrti): a guardian of the southwest.
- Suiten (Varuna): the water god, a guardian of the west.
- Fūten (Vayu): the wind god, a guardian of the northwest.
- Bishamonten (Vaishravana): guardian of the north, also known as Tamonten and one of the Four Great Kings.
- Ishanaten (Ishana): a guardian of the northeast, linked to Shiva.
- Jiten (Prithvi): the earth goddess.
- Nitten (Surya): the sun god.
- Gatten (Chandra): the moon god.
Several of these guard compass directions, with Brahma looking after the upward direction and Prithvi the downward, which is why the group is often seen in a protective arrangement around a central figure. The Four Great Kings in Buddhism, one of whom appears on this list, are a closely related group of guardians.
Role in Japanese practice
In Shingon Buddhism, the Twelve Devas appear in mandalas and in a ritual known as the Goshichinichi Mishuhō, held at the start of the year at the Tō-ji temple in Kyoto, where images of the devas are displayed. Statues and paintings of them are found in some temples and are valued as artworks. Devotees typically see them as protectors who help safeguard practitioners and the Dharma rather than as gods who grant salvation.
Other groups of twelve
Be careful not to confuse this list with other groups of twelve. The best known is the Twelve Heavenly Generals (or Twelve Yaksha Generals) who protect the Medicine Buddha and his devotees. These are a different set of figures, and in some traditions each is paired with a zodiac animal. There is also a separate question about twelve deities in Buddhism in other traditions, as the lists differ by region.
More broadly, whether Buddhists “believe in God” depends on what is meant by the word, a point covered in whether Buddhists can believe in God.