In the Dungeons & Dragons (D&D) role-playing game, the Dungeon Master (often abbreviated as DM) is the game organizer and participant in charge of creating the details and challenges of a given adventure, while maintaining a realistic continuity of events. In effect, the Dungeon Master controls all aspects of the game, except for the actions of the player characters (PCs), and describes to the players what they see and hear.
The title was invented for the TSR Dungeons & Dragons RPG, and was introduced in the second supplement to the game rules (Blackmoor). To avoid infringement of TSR's trademarks, and to describe referees in role-playing genres other than sword and sorcery, other gaming companies use more generic terms, like Game Master, Game Operations Director, Judge, Referee or Storyteller, with some using more esoteric titles related to the genre or style of the game, such as Keeper of Arcane Lore, or even completely surreal titles such as Hollyhock God.
Also, in Faiths and Pantheons, the Faerunian Overgod Ao answers to a superior entity, insinuated to be the "Dungeon Master".
The Dungeon Master (DM) assumes the role of the game master or referee and describes for other players what they perceive in this imaginary world, and what effects their actions have. That person is responsible for preparing each game session, and must have a thorough understanding of the game rules. Since the inception of the Advanced Dungeons & Dragons system in 1977, these rules have been contained in three hardbound books: the Player's Handbook, Dungeon Master's Guide, and Monster Manual. Many other rulebooks exist as well, but these are not required for conducting the game.