Prime Minister Luis Montenegro has vowed to put an end to the “wide-open doors” policy with new limitations on one of Europe’s most liberal immigration regimes.

Portugal repealed a key migration policy on Monday as it aims to limit the number of new arrivals.

The changes put an end to a rule that allowed non-EU migrants to move to Portugal without an employment contract and later request residency after paying social security for a year.

Now, migrants will need an employment contract before moving to the country.