Pope Francis's remarks that U.S. Republican presidential candidate Donald Trump is "not Christian" due to his views on immigration sparked jokes on social media.

The pope quickly became the top-trending topic on Twitter in the United States after news of his comments came out.

The leader of the world's Roman Catholics was winning the battle on social media: Overall sentiment for Trump was negative, while overall sentiment for Francis was positive, according to social media analytic firm Zoomph.

The pope said that a person who thinks only about building walls was not Christian, alluding to Trump's proposed plan to build a barrier on the United States' border with Mexico in order to keep out illegal immigrants.

The billionaire businessman and former reality TV star called the pope's comments "disgraceful" and said he was proud to be a Christian. Trump, long the leader in national opinion polls, and five rivals face off on Saturday in South Carolina's Republican primary.

Twitter users expressed surprise and poked fun at the brouhaha.

"Holy smokes! Just when you think you've seen it all, war of words breaks out between @realDonaldTrump and @Pontifex!" tweeted David Axelrod (@davidaxelrod), President Barack Obama's former chief campaign strategist, using both Trump and the pope's Twitter user names.

"Watching Trump fight with the Pope might be the most fun you can have with your clothes on," tweeted actor Albert Brooks (@AlbertBrooks).

Paul Begala (@PaulBegala), a political consultant who is an adviser to a Super PAC helping Democratic presidential candidate Hillary Clinton, said: "How long before realDonaldTrump says the Pope is totally broke. Doesn't own a single golf course. Never even dated a supermodel. #Loser."

"The Late Show," hosted by comedian Stephen Colbert, tweeted a Twitter poll Thursday in which it asked "How can Donald Trump get back in the Pope's good graces?" The options listed were "Cabinet position," "Purchase indulgences," "Evict Protestants" and "Sensual back rub."

While the pope and Trump are now at odds, the business tycoon had previously praised the pontiff.

In 2013, the year Francis began his papacy, Trump compared himself to the pope favorably.

On Christmas Day 2013: Trump tweeted, "The new Pope is a humble man, very much like me, which probably explains why I like him so much!"

Sign up to our free newsletters

Get the best updates straight to your inbox:
Please select at least one mailing list.

You can unsubscribe at any time by clicking the link in the footer of our emails. We use Mailchimp as our marketing platform. By subscribing, you acknowledge that your information will be transferred to Mailchimp for processing.