Complex sentence: At the end of the war, all of the Maratha powers had surrendered to the British, which resulted in the Treaty of Gwailor on 5 November 1817.
Split into simpler sentences: At the end of the war, all of the Maratha powers had surrendered to the British. Shinde, which resulted in the Treaty of Gwailor on 5 November 1817.