Complex sentence: It was a fierce battle in which Jayapala was defeated.
Split into simpler sentences: It was a fierce battle. At the end Jayapala was defeated.