The Holy Spirit made her do it.

The court scribe who went on a crazed rant about the Constitution, religion and Freemasons after Wednesday’s vote to reopen the government said God spent the shutdown urging her to speak her mind.

“For the past 2 and ½ weeks, the Holy Spirit has been waking me up in the middle of the night and preparing me (through my reluctance and doubt) to deliver a message in the House Chamber,” stenographer Dianne Foster Reidy told Fox News’ Chad Pergram in a statement.

“That is what I did last night.”

Reidy, 48, was hauled from the chamber and taken to the hospital by Capitol Police after delivering her bizarre diatribe from a microphone near the speaker’s chair.

“He will not be mocked. He will not be mocked – don’t touch me – he will not be mocked,” Reidy shouted as stunned lawmakers tried to calm her and pull her away from the podium.

“The greatest deception here is this is not one nation under God. It never was…the Constitution would not have been written by the Freemasons. They go against God,” Reidy said.

“You cannot serve two masters!’

Reidy, a married mom of two young daughters who makes $126,050 a year at her House steno gig, is a fan of several Christian-oriented groups, including the evangelical In Touch Ministries, led by TV preacher Charles Stanley, according to her Facebook profile.

Reidy grew up on Long Island – where she registered to vote in 1991 as a member of the Liberal Party, records show.

Her husband – a video company owner and former director of the far-right Great Commission Ministries International – defended his wife’s public outburst.

“My wife is a sweet, level-headed wonderful woman of God,” he told Pergram.

“I am proud of her.”