Gandalf confronts the Balrog—a primordial fire demon of immense power—in the Mines of Moria. Known as Durin's Bane, it was awakened by the Dwarves' deep delving for mithril.
This battle on the Bridge of Khazad-dûm is one of the most pivotal scenes in The Fellowship of the Ring. Gandalf shatters the bridge, falls with the Balrog into the abyss, and later returns as Gandalf the White after defeating it atop the peak of Zirakzigil.
The Balrog represents ancient evil predating Sauron—a Maiar corrupted by Morgoth. Its whip of fire and shadow, and its sheer physical and magical might, make it one of Middle-earth's most terrifying beings.