Michigan’s ban on gay marriage is unconstitutional, a federal judge said Friday as he struck down a law that was widely embraced by voters a decade ago — the latest in a recent series of decisions overturning similar prohibitions across the country.

U.S. District Judge Bernard Friedman released his 31-page ruling exactly two weeks after a rare trial that mostly focused on the impact of same-sex parenting on children.

He noted that supporters of same-sex marriage believe the Michigan ban was at least partly the result of animosity toward gays and lesbians.

“Many Michigan residents have religious convictions whose principles govern the conduct of their daily lives and inform their own viewpoints about marriage,” Friedman said. “Nonetheless, these views cannot strip other citizens of the guarantees of equal protection under the law.”