Complex sentence: This convinced San Martín to move back to the Americas, but the war ended during his journey home after British diplomacy forced Dorrego to sign the 1828 Treaty of Montevideo.
Split into simpler sentences: This convinced San Martín to move back to the Americas. However, during his journey back, the war ended with Dorrego being forced by British diplomacy to sign the 1828 Treaty of Montevideo.