You apply for a marriage license. You take the license to a registered officiant and have a ceremony of your choice. The officiant returns the license to the clerk who then issues a certificate of marriage. You take your partner home and live together presumably forever in a loving, committed relationship. In this respect, a same-sex marriage is exactly the same as a heterosexual marriage.