The social security system in Spain first appeared in 1883 and has since been expanded and enshrined in the Spanish constitution to guarantee protection to citizens. It structures protections for employees, self-employed individuals, civil servants and more across various contingencies like healthcare, unemployment benefits, disability, retirement and more. Protections are provided on both a contributory basis for those working and carrying out occupational activities, and a non-contributory basis for dependents and residents.