Complex sentence: Then they fought Ansari and Quraysh Muslims (Battle of the Trench), and later converted with Islam, included in the Muslim army, they defeated of Banu Hilal and Hawazin confederacy in Battle of Hunayn.
Split into simpler sentences: Then they fought the Ansar and Qureish Muslims (Battle of the Trench), and later converted to Islam. Included in the Muslim army, they defeated the Bani Hilal and the Hawazin tribes in the Battle of Hunayn.