Complex sentence: He joined an Andalusian battalion as a cadet and was wounded in 1807 when defending Buenos Aires.
Split into simpler sentences: He joined an Andalusian battalion as a cadet. He was wounded in 1807 when fighting in defense of Buenos Aires.