The history of Islam has often been linked to the existence of an Islamic state or empire. From its beginnings, Islam existed and spread as a community-state; it was both a faith and a political order. Within centuries after his death, Muhammad's local Arabian polity became a vast empire, extending from North Africa to Southeast Asia.
The development of Islam and state institutions (the caliphate, law, education, the military, social services) were intertwined. Again, the Prophetic period provided the paradigm for later generations. For it was in Medina that the Quranic mandate took on form and substance under the guidance and direction of the Prophet.
The extraordinary spread and development of Islam was not without its religious conflicts. That same concern that had motivated the attempt by the ulama to preserve Islam in the face of caliphal whim and uncritical adoption of foreign, un-Islamic practices, led to conflicts between the ulama and those whom they sometimes regarded as their competitors, the Sufis and the philosophers.
Hope it helped!