The social contract is a philosophical concept that suggests individuals consent, either explicitly or implicitly, to form a society and abide by its rules in exchange for protection and the benefits of communal living. This idea became a foundational principle during the Enlightenment, influencing literature and political thought as thinkers explored the relationship between individuals and the authority of the state.