MADRID (AP) — Around 1 million immigrants in Spain have sought to legalize their status after the Southern European nation launched a measure earlier this year to integrate foreigners living and working in the country without authorization.

The window to apply for the program, which was announced in January and kicked off in April, was set to close Tuesday.