José de San Martín gained his military experience serving Spain and fighting the French, sometimes with the British, meeting Wellington, Beresford, and Napoleon. Having served for 22 years in the Spanish Army, Jose de San Martin brilliantly led the armies that overthrew the Spanish to liberate the southern countries of South America.