Marriage is a form for the pair so they sue their partner, any reason like cheating, scam, etc. Maybe it's like a contract, but mainly for safeguard. To protect your money or get the money. Lol
I mean, it doesn't matter the place you vow(church, mosque, etc), it's always end in human courtlaw...