Complex sentence: The Chinese army came to Tibet's defence and advanced close to Kathmandu, forcing the Gorkhalis to sign a peace treaty under which they had to pay to pay tribute to Beijing every five years.
Split into simpler sentences: The Chinese army came to Tibet's defence and advanced close to Kathmandu. The Gorkhalis were forced to sign a peace treaty under which they had to pay to pay tribute to Beijing every five years.