Ibn Khaldun
Ibn Khaldun (; , ; 27 May 1332 – 17 March 1406) was an influential Arab thinker of the 14th century. His family were from Andalusia. Khaldun served the governments of the day in many ways. He was sometimes in prison. He lived in Marrakesh in Morocco for a time, and in Granada. Then he moved to Cairo, where he was a judge.