In 1811, a combination of internal and external factors motivated Central American elites to attempt to gain independence from the Spanish Crown. The most important internal factors were the desire of local elites to control the country's affairs free of involvement from Spanish authorities, and the long-standing Creole aspiration for independence. The main external factors motivating the independence movement were the success of the French and American revolutions in the 18th century, and the weakening of the Spanish Crown's military power as a result of the Napoleonic Wars, with the resulting inability to control its colonies effectively.