Complex sentence: He only spent four years in this army, because in 1771 he was living in the modern Mexico, where he joined the Army of this place.
Split into simpler sentences: He only spent four years in this army, because in 1771 he was living in the modern Mexico. There, he joined the Army of this place.