Historian Ibn Khaldun is best known for the Muqaddimah, the introduction to his work on history. By his own account, he wrote it in six months.