Complex sentence: San Martín did not take hostages or ask for ransoms, but rather he instructed his people to avoid further conflicts and to try to restore peaceful relations with the royalists.
Split into simpler sentences: San Martín did not take hostages or asked for ransoms. On the contrary, he instructed his people to avoid further conflicts and try to restore peaceful relations with the royalists.