Madani refers to the "Medinan" phase of the Prophet's mission, spanning the ten years after the Hijrah to Medina. During this period, the Muslim community evolved into a structured state. Madani verses and surahs of the Quran typically focus on legislation, social justice, civil laws, family matters, and the relationship between the Islamic state and other communities. The Madani period represents the practical application of Islamic principles in governing a society, moving from the foundational theological focus of the Meccan period to the establishment of a comprehensive legal and social system. The Madani surahs are generally longer and more detailed, reflecting the need for comprehensive guidance for a functioning society. They address issues of governance, warfare, treaties, commerce, inheritance, marriage, divorce, and criminal justice. The style is often more expository than the intense emotional appeal of Meccan surahs. During this period, the Muslim community faced external threats from hostile tribes and internal challenges from hypocrites (munafiqun), so the revelations provided guidance on dealing with both. Many Madani verses were revealed in response to specific events or questions from the community. The final surahs of the Madani period, such as Al-Ma'idah, contain the last legal rulings that completed the Shariah. Understanding the Madani revelations is essential for deriving Islamic law (fiqh), as they often abrogate or modify earlier rulings from the Meccan period, representing the final, perfected form of the religion.