What was an effect of José de San Martín's military campaigns?

AHe aided Mexico in gaining independence by leading a peasant revolt against the Spanish.
BHe became the first President of the Republic of Brazil to lead a military coup against the emperor.
CHe helped form the State of Mexico after leading the Mexican War against Texas.
DHe helped Peru declare independence in 1821 after victories against royalists.