This is a list of deities of Dungeons & Dragons, including all of the 3.5 edition gods and powers of the "Core Setting" for the Dungeons & Dragons (D&D) roleplaying game. Religion is a fundamental element of the D&D game, because it is required to support both the cleric class and the behavioural aspects of the ethical alignment system. The pantheons employed in D&D provide a useful framework for creating fantasy characters, as well as governments and even worlds. Because the Core Setting is based on the World of Greyhawk, the Greyhawk gods list contains most of the deities listed here, and many more.
The first official publication to detail god-like beings for use in the Dungeons & Dragons game was Gods, Demi-gods & Heroes, published in 1976 as the fourth supplement for the original edition. This work was superseded by the Deities & Demigods source book, which was first published in 1980. The first printing included the Cthulhu Mythos, but both this and the Melnibonéan mythos were removed by the third printing because of potential copyright issues. In 1985, the book was renamed Legends & Lore due to concerns about bad publicity. The Babylonian, Finnish, nonhuman, and Sumerian content were removed to allow room for expansion of the remaining mythoi.
In 1992, Monster Mythology was published as a sourcebook for the second edition of Dungeons & Dragons. This work re-introduced detailed information on the deities of several non-human pantheons. The Faerûnian pantheon for the Forgotten Realms campaign setting was more fully detailed in 1996–8 with the publication of Faiths & Avatars, Powers & Pantheons and Demihuman Deities.