Marriage is part of dharma sweekara. Groom takes up gruhastashrama dharma and bride takes up gruhastashrama dharma and kutumbha dharma. These two dharmas gives you lot of peace when we dont know these dharmas we cant lead a proper married life. Marriage is a ceremony when you take up a promise to follow this dharma.