The Shafi'i (Arabic: شافعي‎ Šāfiʿī ) madhhab is one of the schools of fiqh, or religious law, within the Sunni branch of Islam. Named after Imām ash-Shafi'i, it is followed by Muslims worldwide in Southeast Asia, Horn of Africa, Yemen, and parts of the Egypt and Indian subcontinent.

The Shafi'i (Arabic: شافعي‎ Šāfiʿī ) madhhab is one of the schools of fiqh, or religious law, within the Sunni branch of Islam. Named after Imām ash-Shafi'i, it is followed by Muslims worldwide in Southeast Asia, Horn of Africa, Yemen, and parts of the Egypt and Indian subcontinent.

The Shafi'i school of thought stipulates authority to four sources of jurisprudence, also known as the Usul al-fiqh. In hierarchical order, the usul al-fiqh consist of: the Quran, the Sunnah of the Islamic prophet Muhammad, ijmā' ("consensus"), and qiyas ("analogy").

The Shafi'i school also refers to the opinions of Muhammad's companions (primarily Al-Khulafa ar-Rashidun). The school, based on Shafi'i's books ar-Risala fi Usul al-Fiqh and Kitab al-Umm, which emphasizes proper istinbaat (derivation of laws) through the rigorous application of legal principles as opposed to speculation or conjecture.

Shafi'i's treatise ar-Risala fi Usul al-Fiqh is not to be mistaken or confused with the al-Risala of Imam Malik.

Imam Shafi'i approached the imperatives of the Islamic Shariah (Canon Law) distinctly in his own systematic methodology. Imam Shafi'i, Imam Malik and Imam Ahmad ibn Hanbal almost entirely exclude the exercise of private judgement in the exposition of legal principles. They are wholly governed by the force of precedents, adhering to the Scripture and Traditions. They also do not admit the validity of a recourse to analogical deduction of such an interpretation of the Law, whereby its spirit is adapted to the circumstances of any special case.

Shafi'i is also known as the "First Among Equals" for his exhaustive knowledge and systematic methodology to religious science