Individuals can obtain permanent residency in Spain after having legally lived in the country for a period of five uninterrupted…