The early modern idea that the state, constitution, and socio-economic order had to be based on a legal agreement according to the mutual benefit of the parties involved arose in the 17th century and became widespread in the latter half of the 18th century. It built upon a complex process of the fusion, differentiation, and transformation of earlier Christian notions of unions and alliances, Roman legal principles, and humanistic religious approaches.