Breaking News Emails Get breaking news alerts and special reports. The news and stories that matter, delivered weekday mornings.

April 9, 2015, 2:50 PM GMT / Updated April 9, 2015, 3:50 PM GMT / Source: NBC News

Roughly a third of Americans say that businesses should be allowed to refuse gay customers on religious grounds, and the figure rises to almost half for businesses that provide wedding services, according to an NBC News poll released on Thursday.

The poll found a sharp political divide on the issue. By a margin of 65 percent to 35 percent, Republicans said that businesses should be allowed to turn away gay customers. Democrats, by a margin of 82-18, said that they should not.

The youngest group of respondents, people aged 18 to 29, were most likely to say that businesses should be required to serve gay customers — a margin of roughly 3-to-1.

The poll, which surveyed 2,052 adults nationwide, was taken Monday through Wednesday, in the wake of a nationwide furor over laws in Indiana and Arkansas that supporters said were designed to protect religious freedom.

Powerful businesses and prominent public figures opposed the laws and said that they could be used to discriminate against gay customers.

In Indiana, lawmakers rushed to amend their law to spell out that no business could use a religious objection as grounds for discrimination. In Arkansas, lawmakers revised a bill so that it more closely mirrored a federal religious freedom law.

In the poll, conducted by NBC News and SurveyMonkey, 37 percent of respondents said business should be allowed to refuse products or services to gays on religious grounds, compared with 63 percent who said they should be required to provide service.