A Christian baker refused to bake a cake for a gay couple, citing his beliefs. The couple sued him.
The US Supreme Court appeared sharply divided on Tuesday as it weighed impassioned arguments in the closely watched case of a Colorado baker who cited his devout Christian faith in refusing to make a wedding cake for a gay couple.
The case pitting free speech, religion and artistic freedom against anti-discrimination laws is the most significant for gay rights since the high court approved same-sex marriage two years ago.
Supporters of both sides gathered outside the court and inside the crowded chamber as lawyers presented their arguments to the nine Supreme Court justices during a 90-minute hearing.
The landmark case pits gay couple Dave Mullins and Charlie Craig against Colorado bakery owner Jack Phillips, who refused in July 2012 to make a cake for their wedding reception.
The four liberal-leaning justices appeared to favour the argument that Phillips, owner of Masterpiece Cakeshop, should be obliged to provide service to all customers, regardless of sexual orientation.
Colorado law prohibits discrimination on the basis of race or sexual orientation, and both the state civil rights commission and an appeals court ruled against Phillips, sending the case to Washington.
The conservative members of the court appeared to be more receptive to the argument that Phillips, who describes himself as a "cake artist," should not be forced to create something that conflicts with his religious beliefs.
Justice Anthony Kennedy, who wrote the 2015 opinion that sanctioned same-sex marriage, is considered the crucial swing vote in the case, which the court is expected to rule on before the end of June.
Kennedy, who generally sides with the conservative faction, had sharp questions for both sides, but he seemed to put great emphasis on Phillips' First Amendment right to free speech.
The first question taken up by the court was whether a cake can be considered artistic expression.
"The primary purpose of a food of any kind is to be eaten," said Justice Sonia Sotomayor, one of the liberal members of the court.
Kristen Waggoner, an attorney for Phillips, countered that his elaborate wedding cakes were more than just food.
"That cake expresses a message," Waggoner said.
"The First Amendment prohibits the government from forcing people to express messages that violate religious convictions."
"Yet the commission requires Mr Phillips to do just that, ordering him to sketch, sculpt and hand-paint cakes that celebrate a view of marriage in violation of his religious convictions," she said.
The Trump administration filed a brief in support of Phillips, who has said he believes marriage can only be between a man and a woman, and Solicitor General Noel Francisco made an appearance on his behalf.
"I don't think you could force the African-American sculptor to sculpt a cross for the Klan service," Francisco said in a reference to the white supremacist Ku Klux Klan group.
David Cole, an attorney for Mullins, a 33-year-old poet and musician, and Craig, a 37-year-old interior designer, said he respected the sincerity of Phillips' convictions.
"(But) no one is suggesting that the baker has to march in the parade," Cole said.
"There was no request for a design," he said. "There was no request for a message."
Mullins and Craig told AFP in an interview this week that they were emotionally devastated after Phillips turned them down in a brief meeting at the bakery.
"We were simply turned away because of who we were," Mullins said. "We were publicly humiliated for who we were."
Mullins, Craig and civil rights groups have warned that if Phillips is victorious, other businesses could cite religious beliefs to refuse service to gay customers.
Justice Elena Kagan made such a reference while questioning Phillips' attorneys.
"You have a view that a cake can be speech because it involves great skill and artistry," she said. "If that's the case, how do you draw a line?
"How do you decide, the chef and the baker are on one side," she said, "versus the hairstylist or the makeup artist?"
Some 20 states, dozens of members of Congress and Christian lobbyist groups have thrown their weight behind the baker, who spoke to reporters following the hearing.
"I love my craft because I get to turn a cake into a canvas where I get to express ideas, celebrate events and bring joy to my community," he said.
"I don't create custom designs for events or messages that conflict with my conscience," Phillips added. "I don't create cakes for Halloween, for homosexuals, or anti-American themes or that disparage people."
Supporters of both sides were out in force on Tuesday outside the court.
"We got your back Jack," read signs supporting the baker.
A Mullins-Craig supporter dressed in a costume as the "Holy Bible" displayed a sign that said "Use me not for your bigotry."