Napoleon invaded Spain and appointed his brother Joseph Bonaparte to the throne - Colonists ejected French governor and appointed own leader in Venezuela, Simón Bolívar, who eventually helped them declare independence from Spain in 1811. José de San Martin also took command of Argentinian, Chilean, Peruvian armies, and defeated many Spanish forces to also declare independence from Spain.