Mont. Code Ann. § 70-1-404
Conditions restraining marriage void
70-1-404 . Conditions restraining marriage void. Conditions imposing restraints upon marriage, except upon the marriage of a minor, are void, but this does not affect limitations where the intent was not to forbid marriage but only to give the use until marriage.