Usul al-Fiqh deals with the principles and methodology used to derive rulings of Islamic law (fiqh) from their primary sources. It discusses the sources of Islamic law like the Quran and hadith, and how scholars extract legal rulings from them using various principles. Some of the key principles discussed in Usul al-Fiqh include the hierarchy and characteristics of evidence, methods of legal deduction, and distinguishing between definitive and probable rulings derived from sources. The goal of Usul al-Fiqh is to lay out a coherent framework for deriving Shar'i rulings in a manner that avoids errors and inconsistencies.