Apparently, Donald Trump isn't the only candidate putting his foot in his mouth on the campaign trail.
Libertarian presidential candidate Gary Johnson is in hot water with the Mormon population.
While discussing religious freedom in an interview with the Washington Examiner, Johnson said: "I mean under the guise of religious freedom, anybody can do anything. Back to Mormonism. Why shouldn't somebody be able to shoot somebody else because their freedom of religion says that God has spoken to them and that they can shoot somebody dead."
See images of Gary Johnson through the years:
Gary Johnson through the years
Gary Johnson through the years
UNITED STATES - MARCH 3: Gov. Gary Johnson, former Governor of NM, speaks at the American Conservative Union's CPAC conference at National Harbor in Oxon Hill, Md., on Thursday, March 3, 2016. (Photo By Bill Clark/CQ Roll Call)
UNITED STATES - FEBRUARY 26: Former New Mexico Gov. Gary Johnson pretends to have a heart attack on stage while arguing in favor of legalization of marijuana during CPAC in National Harbor, Md., on Feb. 26, 2015. Former Rep. Ann Marie Buerkle, R-N.Y., not pictured, had just argued during their debate that marijuana caused an increased risk of heart attacks. (Photo By Bill Clark/CQ Roll Call)
ORLANDO, FL - SEPTEMBER 22: Former New Mexico Gov. Gary Johnson speaks in the Fox News/Google GOP Debate at the Orange County Convention Center on September 22, 2011 in Orlando, Florida. The debate featured the nine Republican candidates two days before the Florida straw poll. (Photo by Mark Wilson/Getty Images)
File-This Nov. 3, 2011 file photo shows former New Mexico Gov. Gary Johnson addressing the 2011 Drug Policy Alliance conference in Los Angeles. On Tuesday, July 1, 2014 it was announced that Johnson had been named the CEO of a Nevada-based company that hopes to make medical and recreational marijuana products. (AP Photo/Damian Dovarganes, File)
Gary Johnson, the Libertarian Party candidate for president, addresses an audience of students and the public at Macalester College, Friday, Sept. 21, 2012 in St. Paul, Minn. Johnson, a former two-term New Mexico governor, is on a nationwide college tour as part of his campaign for president. (AP Photo/Jim Mone)
Republican presidential candidates, from left, former New Mexico Gov. Gary Johnson, former Pennsylvania Sen. Rick Santorum and former House Speaker Newt Gingrich, prepare prior to a debate Thursday, Sept. 22, 2011, in Orlando, Fla. (AP Photo/John Raoux)
FILE - In this Sept 23, 2011 file-pool photo, former New Mexico Gov. Gary Johnson speaks in Orlando, Fla. The Libertarian Johnson is running for president a second time after winning more than a million votes in 2012. (AP Photo/Joe Burbank, Pool, File)
Former New Mexico Gov. Gary Johnson announces his plans to seek the Republican nomination for president in front of the Statehouse Thursday, April 21, 2011 in Concord, N.H. Gov. Johnson says he has the resume needed to lead the country. (AP Photo/Jim Cole)
New Mexico Gov. Gary Johnson, shown at the Inn of Loretto, Wednesday, Feb. 3, 1999, in Santa Fe, N.M. Insurance companies that back a ``no pay, no play'' proposal, promoted by Gov. Gary Johnson, say they would save money if uninsured drivers were barred from making big claims. Under the legislation, insurance companies would be required to file new rates taking into account their anticipated savings from the new law in August. (AP Photo/Laura Husar)
Texas Gov. George W. Bush, left, makes a joke about the first time he met New Mexico Gov. Gary Johnson, right, as he addresses a crowd at a barbecue June 19, 1998, in support of Johnson's re-election campaign in Albuquerque, N.M. (AP Photo/Jake Schoellkopf)
New Mexico Governor Gary Johnson enters the Roswell Convention Center Thursday, July 3, 1997 surrounded by aliens. The governor and his family visited Roswell to participate in the 50th anniversary celebration of eth Roswell incident.(AP Photo/Susan Sterner)
Discover More Like This
BACK TO SLIDE
Johnson said it's the government's job to prevent discrimination and allowing discrimination based on religion is going to "open up a can of worms."
New York Magazine reports that Johnson was likely referring to the Church of Jesus Christ of Latter-day Saints belief that church leaders can still experience divine revelation.
Both Hillary Clinton and Trump are widely unpopular in Utah, leaving the door open for Johnson to pick up some votes. But offending the Mormon population means offending as many as 60 percent of Utah voters.
RELATED: RCP poll average - Clinton vs. Trump vs. Johnson
In the statement, Johnson said: "My reference to the LDS church, made during an impromptu conversation, was an admittedly very imprecise reference to the violence that accompanied the Mormon's early history in the 1800s. ... Absolutely no offense was intended, and I regret any that has resulted."
His opinion article goes on to say, "My point was that even a respected, peaceful people experienced tragic harm in the name of religion and was, in fact, persecuted by the government itself by politicians who opposed their beliefs and practices."