The California Supreme Court ruled that the state ban on same-sex marriage was unconstitutional.

At the time, less than 50% of Californians polled were in favor of same-sex marriage. Nevertheless, the first couples were married under the new changes in June of the same year.

Source