Complex sentence: His territories had been invaded by the Mysore troops and territories upto Dindigul had been besieged, but the enemy had been eventually driven out and their country was successfully invaded in revenge by a general of Tirumala's.
Split into simpler sentences: His territories had been invaded by the Mysore troops, and territories up to Dindigul had been besieged. But the enemy had been eventually driven out and their country was successfully invaded, in revenge, by a general of Tirumala's.