Complex sentence: The Muslim Ummah consisted of two main groups of people: those from Mecca (the Muhajjar), and those from Medina (the Ansar).
Split into simpler sentences: The Muslim Ummah consisted of 2 main groups of people. Those from Mecca (the Muhajjar) and those from Medina (the Ansar).