Muslim marriage is purely a contract. There is a document (Nikah paper) which is signed by witnesses and on which Mahr
(bride-price) is also mentioned. If they don’t get along , they can separate.