From Lord of the Rings:
Saruman: Moria... You fear to go into those mines. The dwarves delved too greedily and too deep. You know what they awoke in the darkness of Khazad-dum... shadow and flame.
So, the dwarves awoke the Balrog beneath Moria. But why was the Balrog there in the first place?