Article 79 TFEU

1. The Union shall develop a common immigration policy aimed at ensuring, at all stages, the efficient management of migration flows, fair treatment of third-country nationals residing legally in Member States, and the prevention of, and enhanced measures to combat, illegal immigration and trafficking in human beings.

2. For the purposes of paragraph 1, the European Parliament and the Council, acting in accordance with the ordinary legislative procedure, shall adopt measures in the following areas:
(a) the conditions of entry and residence, and standards on the issue by Member States of long-term visas and residence permits, including those for the purpose of family reunification;
(b) the definition of the rights of third-country nationals residing legally in a Member State, including the conditions governing freedom of movement and of residence in other Member States;
(c) illegal immigration and unauthorised residence, including removal and repatriation of persons residing without authorisation;
(d) combating trafficking in persons, in particular women and children.

3. The Union may conclude agreements with third countries for the readmission to their countries of origin or provenance of third-country nationals who do not or who no longer fulfil the conditions for entry, presence or residence in the territory of one of the Member States.

4. The European Parliament and the Council, acting in accordance with the ordinary legislative procedure, may establish measures to provide incentives and support for the action of Member States with a view to promoting the integration of third-country nationals residing legally in their territories, excluding any harmonisation of the laws and regulations of the Member States.

5. This Article shall not affect the right of Member States to determine volumes of admission of third-country nationals coming from third countries to their territory in order to seek work, whether employed or self-employed.