Social contract theory is a philosophical concept that explores the origin of society and the legitimacy of political authority, positing that individuals consent, either explicitly or implicitly, to surrender some of their freedoms to a governing body in exchange for protection of their remaining rights. This theory serves as a foundation for understanding the balance between individual liberties and collective security, especially in discussions surrounding surveillance and government actions.