Secretary of State for Security (Spain)
The Secretary of State for Security (SES) of Spain is the second-highest-ranking official in the Ministry of the Interior. The SES is appointed by the Monarch with the advise of the Minister of the Interior. The Secretariat of State for Security that the SES leads is responsible for ensuring the free exercise of the constitutional rights, to direct and supervise the police forces, to coordinate the international police cooperation and to execute the government's policy about organized crime, terrorism, human trafficking, money laundering and related crimes. It is also responsible for  ensuring the safety of all government buildings, to oversees the prison system, to ensure the good development of all electoral processes and collaborate along with the Customs Surveillance Service (SVA) in the border control. From the Secretary of State for Security depends on four main departments: the Directorate-General of the Police, the Directorate-General of the Civil Guard, the General Secretariat for Penitentiary Institutions and the Directorate-General for International Relations and Immigration. In addition, the Secretary of State for Security tops the Intelligence Center for Counter-Terrorism and Organized Crime (CITCO). History. The origins of this body dated  from the 18th century, when a Superintendent of Police was created to oversees the public order in the Kingdom. However, the truly precursor was the Directorate-General for Security and Public Order, which existed between March and October 1858. After this, the competences were directly assumed by the Ministry of the Interior but in 1912 was created the Directorate-General for Security that was in active service until 1986, when the current Secretariat of State for Security was born. The Directorate-General for Security was the main body responsible for the repression after the civil war and with the need  of renovate the police and improve the image of the police corps, all the security departments were renamed and reorganizated. Structure. From the Secretary of State for Security depends: