After the independence of Peru had taken place, the State took charge of these functions, delegating in the first phase those responsibilities to the prefectures, subprefectures and governorates.