Under Québec law, all spouses, whether married civilly or religiously, are subject to the family patrimony, subject to certain exceptions, and to a matrimonial regime. The matrimonial regime governs their economic relations during marriage and what happens to their property upon dissolution of the regime. The matrimonial regime takes effect on the day the marriage is solemnized. Some spouses married before July 1, 1989, were able to opt out of the family patrimony rules. In situations involving a foreign element, the applicable law must be determined according to the rules of private international law.