Outspoken Democratic Rep. Barney Frank turned Newt Gingrich's claim that God has been driven from public life into an assault on the former House speaker's marital history, charging that Gingrich talks about God only when it's convenient.

Appearing on MSNBC's "PoliticsNation," hosted by Rev. Al Sharpton, Frank was asked about Gingrich's comments about the absence of religion in society and politics.

Frank, who is retiring from the House and who just married his longtime male partner, blasted Gingrich in a personal way. "God appears to have been driven out of Mr. Gingrich's private life if you look at his marital history," said Frank, a reference to Gingrich's three marriages.

"He's very selective about where he thinks fundamental religious tenants should be followed," added Frank.

His comments appear about seven and a half minutes into the interview.

He called Gingrich's comments about God "such nonsense," adding that if Democrats have succeeded in pushing God from public life, then "we must be very powerful."