South Bend Mayor and Democratic presidential hopeful Pete Buttigieg is seen during a live CNN Town Hall moderated by Anderson Cooper at Saint Anselm College on Monday, April 22, 2019, in Manchester, N.H. Elijah Nouvelage for CNN
Elijah Nouvelage for CNN
South Bend Mayor and Democratic presidential hopeful Pete Buttigieg is seen during a live CNN Town Hall moderated by Anderson Cooper at Saint Anselm College on Monday, April 22, 2019, in Manchester, N.H. Elijah Nouvelage for CNN
Now playing
01:30
Buttigieg: I wouldn't be running if I hadn't come out
U.S. President Joe Biden speaks from the Treaty Room in the White House about the withdrawal of U.S. troops from Afghanistan on April 14, 2021 in Washington, DC. President Biden announced his plans to pull all remaining U.S. troops out of Afghanistan by September 11, 2021 in a final step towards ending America's longest war.
Andrew Harnik/Pool/Getty Images
U.S. President Joe Biden speaks from the Treaty Room in the White House about the withdrawal of U.S. troops from Afghanistan on April 14, 2021 in Washington, DC. President Biden announced his plans to pull all remaining U.S. troops out of Afghanistan by September 11, 2021 in a final step towards ending America's longest war.
Now playing
01:03
Biden: It's time to end the forever war
Biden cemetery
CNN
Biden cemetery
Now playing
01:32
Biden says it was 'clear' decision to withdraw as he visits graves of soldiers
One shot doses of the Johnson & Johnson COVID-19 vaccine are prepared at a clinic targeting immigrant community members on March 25, 2021 in Los Angeles, California.  The clinic, run by the St. John's Well Child and Family Center, estimates it has vaccinated more than 100,000 people in the Los Angeles area amid reports of two undocumented women who were refused coronavirus vaccinations in Orange County Rite Aid stores. Rite Aid has called the refusals mistakes in a written statement.  (Photo by Mario Tama/Getty Images)
Mario Tama/Getty Images
One shot doses of the Johnson & Johnson COVID-19 vaccine are prepared at a clinic targeting immigrant community members on March 25, 2021 in Los Angeles, California. The clinic, run by the St. John's Well Child and Family Center, estimates it has vaccinated more than 100,000 people in the Los Angeles area amid reports of two undocumented women who were refused coronavirus vaccinations in Orange County Rite Aid stores. Rite Aid has called the refusals mistakes in a written statement. (Photo by Mario Tama/Getty Images)
Now playing
02:48
These unlikely events are still more likely than a blood clot after the J&J vaccine
U.S. Marines conduct an operation to clear a village of Taliban fighters in July 2009 in Mian Poshteh, Afghanistan.
Joe Raedle/Getty Images
U.S. Marines conduct an operation to clear a village of Taliban fighters in July 2009 in Mian Poshteh, Afghanistan.
Now playing
03:19
Biden to announce Afghanistan withdrawal by September 11
roger wicker
CNN
roger wicker
Now playing
04:52
Sen. Wicker on Biden's infrastructure plan: Not ruling out tax hike
Representative Matt Gaetz (R-FL) arrives for a House Armed Services Subcommittee hearing with members of the Fort Hood Independent Review Committee on Capitol Hill on December 9, 2020 in Washington, DC.
Samuel Corum/Getty Images
Representative Matt Gaetz (R-FL) arrives for a House Armed Services Subcommittee hearing with members of the Fort Hood Independent Review Committee on Capitol Hill on December 9, 2020 in Washington, DC.
Now playing
03:02
Sources say Gaetz was denied meeting with Trump
CNN
Now playing
07:27
CNN anchor pushes back on Texas state lawmaker's defense of voting bill
CNN
Now playing
01:12
Tapper asks Buttigieg for infrastructure plan timeline
Now playing
02:48
GOP governor calls Trump's RNC remarks 'divisive'
WASHINGTON, D.C. - APRIL 19, 2018:  The U.S. Supreme Court Building in Washington, D.C., is the seat of the Supreme Court of the United States and the Judicial Branch of government. (Photo by Robert Alexander/Getty Images)
Robert Alexander/Getty Images
WASHINGTON, D.C. - APRIL 19, 2018: The U.S. Supreme Court Building in Washington, D.C., is the seat of the Supreme Court of the United States and the Judicial Branch of government. (Photo by Robert Alexander/Getty Images)
Now playing
02:39
SCOTUS blocks California Covid restriction on religious activities
rep jim clyburn georgia voting law jim crow sot sotu vpx_00000000.png
rep jim clyburn georgia voting law jim crow sot sotu vpx_00000000.png
Now playing
02:13
Rep. Clyburn blasts GA voting law: It's the 'new Jim Crow'
Gaetz speaks to members of the media outside the hearing Michael Cohen, former attorney and fixer for President Donald Trump, testifies at before the House Committee on Oversight and Reform at Rayburn House Office Building February 27, 2019 on Capitol Hill in Washington, DC. Last year Cohen was sentenced to three years in prison and ordered to pay a $50,000 fine for tax evasion, making false statements to a financial institution, unlawful excessive campaign contributions and lying to Congress as part of special counsel Robert Mueller's investigation into Russian meddling in the 2016 presidential elections.
Alex Wong/Getty Images
Gaetz speaks to members of the media outside the hearing Michael Cohen, former attorney and fixer for President Donald Trump, testifies at before the House Committee on Oversight and Reform at Rayburn House Office Building February 27, 2019 on Capitol Hill in Washington, DC. Last year Cohen was sentenced to three years in prison and ordered to pay a $50,000 fine for tax evasion, making false statements to a financial institution, unlawful excessive campaign contributions and lying to Congress as part of special counsel Robert Mueller's investigation into Russian meddling in the 2016 presidential elections.
Now playing
06:11
'Bombastic, antagonistic, unapologetic': A look at Gaetz's political career
Former House Speaker John Boehner attends a ceremony to unveil a portrait of himself on Capitol Hill, Tuesday, Nov. 19, 2019 in Washington.
Michael A. McCoy/AP
Former House Speaker John Boehner attends a ceremony to unveil a portrait of himself on Capitol Hill, Tuesday, Nov. 19, 2019 in Washington.
Now playing
02:42
Boehner says Republican colleague held 10-inch knife to his throat outside House floor
President Joe Biden, accompanied by Vice President Kamala Harris, and Attorney General Merrick Garland, speaks about gun violence prevention in the Rose Garden at the White House, Thursday, April 8, 2021, in Washington.
Andrew Harnik/AP
President Joe Biden, accompanied by Vice President Kamala Harris, and Attorney General Merrick Garland, speaks about gun violence prevention in the Rose Garden at the White House, Thursday, April 8, 2021, in Washington.
Now playing
02:05
Biden calls for ban on assault weapons
CNN
Now playing
02:22
Biden: High-speed internet is infrastructure
(CNN) —  

Democratic presidential candidate Beto O’Rourke came to the defense of fellow 2020 rival Pete Buttigieg after anti-gay protesters heckled Buttigieg at an event in Texas on Friday.

“Texans don’t stand for this kind of homophobia and hatred. Mayor Pete, we are grateful you came to Texas and hope to see you and Chasten back again soon,” O’Rourke, a former Texas congressman, wrote on Twitter.

O’Rourke elaborated on his decision to come to Buttigieg’s defense while campaigning Saturday in Iowa.

“I’m a proud American, I’m a proud Texan, and the hatred directed towards Pete Buttigieg last night was not reflective or representative of my state or of this country, so I wanted to call it out immediately, first and foremost,” he told reporters.

Buttigieg, the mayor of South Bend, Indiana, was addressing the Dallas County Democratic Dinner on Friday when his speech was interrupted at least four times by a group of protesters.

One yelled, “Marriage is between a man and a woman.” Another yelled, “Repent.”

The audience applauded over the protests and chanted “Pete” to drown out the protesters, who were eventually escorted from the room by security.

“I’m just thinking of that scripture that says bless and do not curse,” Buttigieg, who has been open about his Episcopalian faith, said after one of the interruptions.

He also said his service in Afghanistan was “for the purpose of defending that gentleman’s freedom of speech,” referring to one of the protesters who interrupted him.

This is not the first time Buttigieg has come up against anti-gay protesters – he was also heckled by anti-gay chants during two campaign events in Iowa last month.

Buttigieg came out in 2015, months before he was re-elected as South Bend’s mayor. If elected, he would be the first married gay US president.

“We are so lucky to have somebody like Mayor Pete running for president right now,” O’Rourke said campaigning in Iowa Saturday. “I think we have to set the example. We can’t just call out intolerance and hatred, we have to show that we don’t just tolerate one another, we embrace one another.”

CNN’s Christian Sierra, Annie Grayer and Aishvarya Kavi contributed to this report.