A marriage contract is a formal agreement between two people to enter into a marriage. A marriage contract is entered into prior to marriage, civil union, or any agreement prior to the main agreement by the people intending to marry or contract with each other.
It serves the purpose of protecting both parties should the marriage come to an end.