With an eye on the events of the American Revolution forty years earlier, revolutionary leaders began bloody wars of independence against Spain, whose armies were ultimately unable to maintain control.