There are legal consequences of marriage, not only while a couple are living together, but also when the marriage comes to an end.