the mir is headed by the minister for home affairs, who is appointed by the king of spain at request of the prime minister, after hearing the council of ministers. the minister is assisted by three main officials, the secretary of state for security, the secretary general for penitentiary institutions and the under secretary of the interior. among the director generals, the most important are the director-general of the police and the director-general of the civil guard.