MADRID (AP) — More than 1 million immigrants in Spain sought to legalize their status after the Southern European nation launched an initiative 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, closed at the end of June.

The Associated Press