(a) The following marriages are prohibited:
(1) a marriage entered into before the dissolution of an earlier marriage of one of the parties becomes final, as provided in section 518.145 or by the law of the jurisdiction where the dissolution was granted;
(2) a marriage between an ancestor and a descendant, or between a brother and a sister, whether the relationship is by the half or the whole blood or by adoption;
(3) a marriage between an uncle and a niece, between an aunt and a nephew, or between first cousins, whether the relationship is by the half or the whole blood, except as to marriages permitted by the established customs of aboriginal cultures; and
(4) a marriage between persons of the same sex.
(b) A marriage entered into by persons of the same sex, either under common law or statute, that is recognized by another state or foreign jurisdiction is void in this state and contractual rights granted by virtue of the marriage or its termination are unenforceable in this state.
Developmentally disabled persons committed to the guardianship of the commissioner of human services and developmentally disabled persons committed to the conservatorship of the commissioner of human services in which the terms of the conservatorship limit the right to marry, may marry on receipt of written consent of the commissioner. The commissioner shall grant consent unless it appears from the commissioner's investigation that the marriage is not in the best interest of the ward or conservatee and the public. The court administrator of the district court in the county where the application for a license is made by the ward or conservatee shall not issue the license unless the court administrator has received a signed copy of the consent of the commissioner of human services.