Shriek Mansion 3-6
From the Super Mario Wiki, the Mario encyclopedia
After this is an area with a Perry Block who tells the player about using the chandelier to defeat King Boo. In the fight the player needs to light all four of the lamps to deal damage to King Boo. After the third hit, King Boo will use the Gloom vibe and start extinguishing lit lamps, after two more hits the player defeats him.