In Italy, the Surveillance Magistracy (Magistratura di Sorveglianza) is a distinct branch of the Italian judiciary, with a specialized competence over the supervision of detainees and prisons. It has the task of supervising the enforcement of sentences, of applying alternative measures to imprisonment, of carrying out alternative sanctions and of applying and enforcing security measures.