Democratic presidential candidate Pete Buttigieg jabbed at U.S. President Donald Trump during a Fox News town hall Sunday, saying he understands why people and the media are “mesmerized” by his tweets because “it is the nature of grotesque things that you can’t look away.” Buttigieg seemed to win over the audience during the event, which ended with a standing ovation for the mayor.

Asked how he responds to Trump’s tweets and name-calling — including referring to Buttigieg as Alfred E. Neumann, the “Mad” magazine character — the 37-year-old mayor of South Bend, Indiana, responded, “I don’t care.” He said Democrats need to talk less about Trump and more about what they’ll do for the American people.

Read more: Trump on Buttigieg embracing husband on stage: 'I think it's great'

Trump criticized Fox News earlier Sunday for “wasting airtime” on Buttigieg, saying Fox “is moving more and more to the losing (wrong) side in covering the Dems.” He added, “Alfred E. Newman will never be President.”

"There is a reason why anyone has to swallow hard and think twice about participating in this media ecosystem," Buttigieg said about his appearance on the network after ripping into Fox News host Tucker Carlson for saying immigrants make the country dirty. "Even though some of those hosts are not there in good faith, I think a lot of people tune into this network who do it in good faith," he added.

Buttigieg added that while many Democrats were critical of his decision to participate in a town hall on Fox News he believes the party needs to meet voters where they are, whether it’s Fox News or visiting places where Democrats aren’t seen much.

Town Hall with Pete Buttigieg | Part 1

Buttigieg was asked about laws passed recently to ban or restrict abortion in states such as Alabama. He said he believes the right to have an abortion is “an American freedom” and that the government shouldn’t have a role in limiting it.

“I think the dialogue has gotten so caught up on where you draw the line that we’ve gotten away from the fundamental question of who gets to draw the line,” he said. “And I trust women to draw the line.”

Asked whether his position extends to the third trimester of pregnancy, Buttigieg said those late-term abortions make up a small percentage of abortions performed and asked the audience to put themselves in that woman’s shoes. Any woman making that decision has likely been expecting to carry the baby to term, he said, and received “the most devasting medical news in their lifetime,” forcing them to make “an impossible, unthinkable choice.”

“And the bottom line is as horrible as that choice is, that woman, that family may seek spiritual guidance, they may seek medical guidance,” he said. “But that decision’s not going to be made any better medically or morally, because the government is dictating how that decision should be made.”