The most famous book Khaldun wrote is the Kitāb al-ʻIbar (Book of Lessons), a history of the world. The first part, Muqaddimah (Introduction) is often used alone. This book is often credited as inventing sociology. He also wrote his autobiography.