On February 10, 1824, Bolívar was given immense political powers when a Peruvian congress named him dictator of Peru, which made Bolívar the head of state of a second country and allowed Bolívar to completely reorganize the political and military administration of Peru.