Undoubtedly, Imam al-Ghazali is the founder of the Maqasid Sharia knowledge framework. This is marked by the work of Imam al-Ghazali in the 5th century entitled "al-Mustasfa min ‘Ilm al-Usul" and "al-Mankhul min Ta’liqat al-Usul". Therefore, this study aims to determine the theory of Maqasid Sharia according to Imam Al Ghazali and its application in the Compilation of Islamic Law (KHI…