In the 6th century, the middle east did not have any uniformity in terms of religious following. Most had idol, pegan beliefs.
Prophet Mohammed started preaching Islam across several regions of middle east. Islam as a religion had all ingredients to attract vast following. There was wide spread discrimination during the middle ages in terms of skin colour, in terms of class, in terms of demographics, social status & many other types of segregation.