The California Supreme Court has overturned a gay marriage ban in a ruling that would make the nation’s largest state the second one to allow gay and lesbian weddings.

The justices’ 4-3 decision Thursday says domestic partnerships are not a good enough substitute for marriage. Chief Justice Ron George wrote the opinion.