The Directorate-General change its name many times, in 1996 to Directorate-General for Labor and Migration and in 1998 Directorate General for the Regulation of Migrations. In 2004 was created the current Secretariat of State under the name of Secretariat of State of Immigration and Emigration and depending on it were three directorate-generals: Directorate-General for Immigration, Directorate-General for Emigration and Directorate-General for the Integration of Immigrants. This Secretariat of State was replaced in 2011 by the General Secretariat of Immigration and Emigration and was created again in 2018 by the name of Secretariat of State for Migration and the former General Secretariat of Immigration and Emigration was integrated as a subsidiary department of it. Structure Under the Secretary of State are the following officials: The General Secretariat for Immigration and Emigration. The Directorate-General for Migration. It is in charge of all administrative affairs regarding immigration and the administrative affairs and public aids to support Spaniards abroad The Directorate-General for Integration and Humanitarian Attention. It is in charge of immigration issues related to international protection, integration of immigrants and unaccompanied minors, humanitarian aid to immigrants, voluntary return of immigrants, migration centers and European funds. The Deputy Directorate-General for Planning and Economic Management. It is in charge of the human resources of the Secretariat of State, the relations with citizens and the economic affairs and budget. The Deputy Directorate-General for Legal Affairs. It makes reports and offers legal advice as well as writing the legislation that is entrusted to it regarding migration issues. The SED also has a personal Cabinet for the coordination of the Secretary of State' activities within the European Union and other international forums and organizations in matters of migration. List of Secretaries of State for Migration References Secretaries of State of Spain