Matrimony, commonly referred to as marriage, is a socially or ritually recognized union between individuals that establishes rights and obligations between them, as well as between them and their children, and between them and their in-laws. It is a foundational institution in many societies, serving various purposes including the regulation of sexuality, the creation of family units, and the provision of social stability.