 He had been one of the senior army officers present at the Peruvian victory on the "Dos de mayo", was given the rank of Colonel, and named as Prefect of Cajamarca.In 1874, Iglesias initiated a revolution against the government of President Manuel Pardo and proclaimed himself political and military Chief of the North.Even though Iglesias's rebellion was a failure, he was not brought to account because no-one in Lima dared to confront the power of Iglesias in Cajamarca.