Holy smokes, Batman — you rescued a kitty from a burning building!

Two men in superhero costumes beat firefighters to the scene of a house fire in West Virginia and rescued a cat trapped inside.

John Buckland was dressed as the Caped Crusader and pal Troy Marcum was playing Captain America to teach kids “positive lessons” at the American Legion post in Milton, W. Va., when they saw smoke and jumped into action on Saturday, according to WCHS-TV8.

The homeowners were out of town, but the duo shattered a window and Buckland reached inside and grabbed the unconscious cat.

Batman went to work and resuscitated the cat.

“The cat comes around, takes a look at me, then hissed!” Buckland told the station.