SALT LAKE CITY — More states and nations may legalize same-sex marriage, but human laws cannot “make moral what God has declared immoral,” a top Mormon leader said last week.

Apostle Dallin H. Oaks, in an address at the Mormon church’s biannual general conference in Salt Lake City, said the faith’s stance against same-sex marriage might be misunderstood or prompt accusations of bigotry.

But he urged members to remember that their first priority is to serve God, and The Church of Jesus Christ of Latter-day Saints’ policies are based on God’s decrees, The Salt Lake Tribune reported.

An LDS eternal perspective does not allow members “to condone such behaviors or to find justification in the laws that permit them,” Oaks said. “... Our policies are determined by the truths God has declared to be unchangeable.”

Some 20,000 Mormons gathered at the Conference Center in Salt Lake City and millions more watched worldwide on the final day of the two-day conference.

Oaks, a former Utah Supreme Court justice, bemoaned America’s declining birthrate, later marriages and rising cohabitation.

He cited the changes as evidence of “political and social pressures for legal and policy changes to establish behaviors contrary to God’s decrees about sexual morality and the eternal nature and purposes of marriage and child-bearing.”

The Mormon church teaches that same-sex attraction is not a sin, but acting on it is.

“Even though individuals do not choose to have such attractions, they do choose how to respond to them,” the church website states.