Marriage is at its core a legal proceeding. An ordained minister is simply a notary for a marriage license. yes, most people attach religion to it, but it's a govt sponsored legal contract. It's unique in that there aren't any other legal contracts that are also religious ceremonies, but you don't need a religious ceremony to get married. So there's your separation. People choose to mix religion in with their marriage but it's not required.