Figure 1: View into Al-Azhar's courtyard. (Source).
The Quran recurrently urges the faithful to acquire knowledge, knowledge that would bring them closer to God and to His creation. Many verses of the sacred book command this act, for example:
Then ‘Say [unto them, O Muhammad]: Can those who know and those who do not know be deemed equal? But only those who are endowed with insight will keep this in mind' (Quran 39: 9).
‘And He has subjected to you, [as a gift] from Him, all that is in the heavens and on earth: behold, in that are messages indeed for people who think.' (Quran 45: 13).
The Quran uses repetition in order to imbed certain key concepts in the consciousness of its readers . Allah (God) and Rab (the Sustainer) are repeated 2,800 and 950 times respectively in the sacred text; Ilm (knowledge) comes third, with 750 repetitions . The Prophet Muhammad commanded all Muslims to seek knowledge wherever and whenever they could.
In light of these Quranic verses and Prophetic traditions, Muslim rulers gave considerable support to education and its institutions, insisting that every Muslim child be given access to it. Thus, elementary education became almost universal among Muslims. Wilds says:
‘It was this great liberality which they displayed in educating their people in the schools which was one of the most potent factors in the brilliant and rapid growth of their civilization. Education was so universally diffused that it was said to be difficult to find a Muslim who could not read or write.'
In Muslim Spain, there was not a village where ‘the blessings of education' could not be enjoyed by the children of the most indigent peasant, and in Cordoba were eight hundred public schools frequented by Muslims, Christians, and Jews alike . And in the great Muslim University of Cordoba, Jews and Christians attained to acknowledged distinction as professors . So high was the place of learning that both teachers and pupils were greatly respected by the mass of the population; and the large libraries collected by the wealthy landowners and merchants showed that learning - as in the Italian Renaissance (six hundred years later) - was one of the marks of a gentleman . Pedersen says that:
Figure 2: Al-Azhar mosque at the beginning of the 20th century. (Source).
‘In scarcely any other culture has the literary life played such a role as in Islam. Learning (ilm), by which is meant the whole world of the intellect, engaged the interest of Muslims more than anything… The life that evolved in the mosques spread outward to put its mark upon influential circles everywhere.'
All public institutions, from the mosques and madrassas to the hospitals and observatories, were places of learning. Scholars also addressed gatherings of people in their own homes. Al-Ghazali, Al-Farabi, and Ibn Sina (Avicenna), among many others, after teaching in public schools, retired to their private libraries and studies, but continued to teach ‘those fortunate enough to be invited.' 
This universality, thirst, and impetus for education, not even equaled today , was a distinguishing mark of that period, when Islam was at its zenith, both as a religion and as a civilization. The role and place of knowledge in that era will be considered (God willing) in subsequent works. The role of the madrassa, another lengthy subject, will also be covered subsequently. Here, focus will be on the organization of education, its aims, and the ways in which it was imparted, and above all the role of the mosque.
The mosque played a major part in the spread of education in the Muslim World, and the association of the mosque with education remained one of its main characteristics throughout history , and, the school became an indispensable appendage to the mosque . From the earliest days of Islam, the mosque was the centre of the Muslim community, a place for prayer, meditation, religious instruction, political discussion, and a school. And anywhere Islam took hold, mosques were established, and basic religious and educational instruction began. Once established, mosques developed into well-known places of learning, often with hundreds, even thousands, of students, and frequently contained important libraries .
The first school connected to a mosque was set up at Medina in 653, and by 900 nearly every mosque had an elementary school for the education of both boys and girls . Children usually started school at five; one of the first lessons was learning how to write the ninety-nine most beautiful names of God and simple verses from the Quran . After the rudiments of reading and writing were mastered, the Quran was then studied thoroughly, and arithmetic was introduced. For those who wanted to study further, the larger mosques, where education was more advanced, offered instruction in Arabic grammar and poetry, logic, algebra, biology, history, law, and theology . Although advanced teaching often took place in madrassas, hospitals, observatories, and the homes of scholars, in Spain, teaching took place mostly in the mosques, starting with the Cordoba mosque in the 8th century .
Figure 4: The Great Mosque of Kairouan in Kairouan, Tunisia, built in 670, is the oldest mosque in the western Islamic world. (Source).
The basic format in which education took place in the mosque was the study circle, better known in the Muslim World as "Halaqat al-'Ilm", or Halaqa for short. A Halaqa is literally defined as ‘a gathering of people seated in a circle' or ‘a gathering of students around a teacher' . Visiting scholars were allowed to sit beside the lecturer as a mark of respect, and in many Halaqas a special section was always reserved for visitors . Although the teachers were in charge of the Halaqas, the students were allowed - in fact, encouraged - to challenge and correct the teacher, often in heated exchanges . Disputations, unrestricted, in all fields of knowledge took place on Friday in the study circles held around the mosques , and no holds were barred .
Al-Bahluli (d.930) a magistrate from a town in Iraq went down to Baghdad, accompanied by his brother, to make a round of such study circles. The two of them came upon one where a scholar ‘aflame with intelligence' was taking on all comers in many different fields of knowledge  Ibn Battuta recorded that more than five hundred students attended the Halaqas of the Ummayad mosque . The Mosque of Amr ibn Al-'Aas in Cairo had more than forty Halaqas at one point , while in, the chief mosque of Cairo there were one hundred and twenty . The traveler and geographer Al-Muqaddasi reports that between the two main evening prayers, as he and his friends sat talking in the Mosque of Amr ibn Al-'Aas, he heard a cry, ‘Turn your faces to the class!' and he realized he was sitting between two halaqas; the mosque was crowded with classes in law, the Quran, literature, philosophy, and ethics .
Figure 5: The Umayyad Mosque in Damascus, Syria. (Source).
In most of the larger mosques teaching and studying became fully-fledged professions and the mosque school took on the semblance of an academy or even became a university later on. In this way, important centres of higher education came into being. They became well renowned and attracted great numbers of students and scholars, including the most illustrious names of Muslim scholarship. In Basra in Iraq, Al-Khalil ibn Ahmad was a lecturer in philosophy at a mosque and one of his students was Sibawayh, who later became one of the greatest Arabic grammarians of all time. The universities of Muslim Spain, particularly those of Granada, Seville and Cordoba, which evolved from mosques, were held in the highest estimation across the world. Among their graduates were Ibn Rushd (Averroes) and Ibn Bajja. In the university of Cordoba in the 9th century, four thousand students were enrolled in the department of theology alone, and the total number of students in attendance at the University was almost eleven thousand.
Many of the Muslim centres of learning still exist today, and are considered to be the oldest universities in the world. Among them are Al-Qayrawan and Al-Zaytuna in Tunisia, Al-Azhar in Egypt and Al-Qarawiyin in Fez, Morocco.
The ‘glory' of Al-Qarawiyin, which was established in the 9th century, was its body of scholars, the ulema. Among the scholars who studied and taught there were Ibn Khaldun, Ibn Al-Khatib, Al-Bitruji, Ibn Harazim, Ibn Maymun, and Ibn Wazzan. Al-Qarawiyin attracted great numbers of students from all over North Africa, Spain, and the Sahara. In general, they were housed by the successive Moroccan dynasties and the ordinary people of Fez.
Figure 6: Boys study the Quran at an Amsterdam mosque. (Source).
The scholars of Al-Azhar, which is probably the most famous Islamic university today, included Ibn al-Haytham, who lived there for a long period; Al-Baghdadi, who taught medicine there in the late 12th century; and Ibn Khaldun, who taught there towards the end of the 14th century, after moving from Al-Qarawiyin. On the eve of the British occupation of Egypt in 1881, there were 7600 students and 230 professors in Al-Azhar. In the early days of Islam, the mosques taught one or more of the Islamic sciences, but after the mid-9th century, became increasingly devoted to legal subjects . Scientific subjects were also taught, including astronomy, engineering, and medicine at Al-Azhar . The latter was also taught at the mosque of Ibn Tulun in Egypt .
In Iraq, pharmacology, engineering, astronomy and other subjects were taught in the mosques of Baghdad, and students came from Syria, Persia and India to learn these sciences . While at the Qarawiyin Mosque, there were courses on grammar, rhetoric, logic, mathematics, and astronomy , and possibly history, geography and chemistry . At Qayrawan and Zaytuna in Tunisia, grammar, mathematics, astronomy and medicine were taught alongside the Quran and Islamic jurisprudence . In Qayrawan, Ziad delivered classes in medicine. Ibn Khaldun, Ishaq Ibn Imran and Ishaq Ibn Sulayman , whose works were subsequently translated by Constantine the African in the 11th century, were taught in Salerno, in the South of Italy, which became the first institute of higher education in Latin Europe.
Figure 7: The Zaytuna mosque in Tunisia was a renowned center of learning. (Source).
The mosques gradually took on more functions, in addition to learning. Tracing this evolution, Makdisi states that in the 10th century there was a flourishing of a new type of college, combining the mosque with a khan or an inn to lodge law students from out of town. The great patron of this stage in the development of the college was Badr ibn Hasanawayh (d. 1014/1015), governor of several provinces under the Buyids, and to whose name the construction of 3,000 mosque-khan complexes was credited over the thirty-year period of his governorship . The reason for the mosque-khan complex was that the student of law had to pursue his studies over a long period, usually four years for undergraduate studies alone, and an indeterminate period for graduate studies, often as many as twenty years, during which he assisted his master in teaching. The mosque itself could not be used for lodging, except under special circumstances; the khan thus became the lodging place of the staff and students and was found nearby. The madrassa, which will be considered at a further stage, was, according to Makdisi, the final stage in the development of the Muslim college, combining the teaching function of the masjid with the lodging function of the khan . This follows a tradition long established by the Prophet Muhammad, whose mosque was connected to a building which served as a school and as a hostel for poor students and those from abroad .
Assistance for students in the mosques was substantial. In Qarawiyin, for instance, students were not only exempt from paying fees but were also given monetary allowances periodically . Dodge states that the students lived in residential quadrangles, which contained two and three story buildings of varying sizes, each accommodating 60-150 students, who all received a minimal assistance for food and accommodation . The number of students at Al-Azhar was always high, Al-Maqrizi mentioning 750 foreign students from lands as distant as Morocco and Persia residing in the mosque at one time , in addition to students from all over Egypt. Those students, who did not have homes in Cairo, were assigned to a residential unit, which was endowed to care for them. Generally, the units gave their residents free bread, which supplemented food given to them by their families, while better off students could afford to live in lodgings near the mosque. Every unit also included a library, a kitchen, a lavatory, and some space for furniture . On his visit to Damascus, the traveler Ibn Jubayr reported the high number and varied facilities for foreign students and visitors at the Umayyad Mosque , prompting him to declare that "anyone in the West who seeks success, let him come to this city to study, because assistance here is abundant. The main thing is that the student here is relieved of all worry about food and lodging, which is a great help." 
Figure 8: The Qarawiyyin mosque in Fez, Morocco, interior view, prayer hall. The Masjid al-Qarawiyin was built in 859-60 and evolved as an university and a major educational center. (Source).
The rulers played a major part in the endowment of mosques for educational purposes. At the Qarawiyin Mosque, there were three separate libraries, the most prestigious of which was the Abu Inan Library , founded by the Merinid Sultan Al-Mutawakkil Abu Inan. An avid reader and collector, the Sultan deposited books on subjects such as included religion, science, intellect, and language in his new library, and also appointed a librarian to take charge of its affairs . In Tunisia, when the Spaniards occupied Tunis between 1534 and 1574, they ransacked its mosques and libraries, and removed many of the precious books and manuscripts . The Ottoman Sultan subsequently expelled the Spaniards, and restored and expanded the Zaytuna mosque, its libraries and madrassa, and made it again a centre of high Islamic culture . In Cairo, in 1365, the Mameluke prince Yalbagha Al-Umari ordered that each student at the Ibn Tulun mosque be given forty dirhams (the basic monetary unit of that time) and a certain quantity of wheat every month . The Mamelukes also paid the salaries and stipends of large numbers of teachers and students . This trend was particularly encouraged by Sultan Husam Al-Din Lajin, who restored the Ibn Tulun mosque in the Qatayi district of Cairo, paying salaries to professors and stipends to students, and asking his physician Sharaf al-Din Muhammad ibn al-Hawafir to deliver lectures on medicine there .
Figure 9: Abu 'l-Hasan Ali Ibn al-Shatir (1304-1375) was a gifted Muslim astronomer, mathematician and engineer who worked as muwaqqit (religious timekeeper) at the Umayyad Mosque in Damascus. His model for the appearances of Mercury, showing the multiplication of epicycles using the Tusi-couple, eliminated the Ptolemaic eccentrics and equant. (Source).
The following tale will enlighten us greatly on education and life in general, in the golden age of Islam . When Ibn Tulun ruled Egypt, some students attended the class of a professor who dictated daily such a small portion of tradition that their money ran out before the class was finished, and they had to sell everything they had to buy food. After starving for three days, they resorted to begging, although none of them wanted to face such disgrace. So they cast a lot, and the one who lost went into a corner of the mosque where they lived and asked God to release him from his plight. Just then, a messenger came from Ibn Tulun with money, for he had been warned in a dream to help them; there was also a message that he would visit them in person the next day. To avoid this honor, which might have been seen by others as a desire for personal glory, the students fled from Cairo that night. Ibn Tulun bought the whole of that ward and endowed the mosque with it for the benefit of students and strangers residing in it.
The Muslim system of education influenced Europe and later the rest of the world in many respects, such as its universality, and its methods of teaching and granting diplomas. Georges Makdisi illustrates this influence well, showing that aspects of university education such as the doctoral thesis and its defense, the peer review of scholarly work based on the consensus of peers, and -most importantly - the concept of academic freedom for professors and students, were all acquired by Europe from the Muslim World. The open scholarly discussions in the mosques were surely the main source of these influences in times when scientific intolerance ruled elsewhere, and free scholarly thought was often punished with burning at the stake. Academic influence also came in the form of the many books written by Islamic scholars which became the core texts of education in the first European universities (Montpellier, Bologna, Paris, Oxford etc.), which all were founded between the twelfth and thirteenth centuries. There were many other ways in which the Muslims influenced education in Europe, which are too long and too detailed to go into here. Refer to the excellent works on this by Makdisi and Ribera .
Finally, to answer those who blame the decline of Muslim civilization on Islam rather than on the occupation and devastation of its centres of learning, such as Cordoba, Baghdad, and Seville, we conclude that from its earliest days, Islam went hand in hand with scholarship and knowledge. As well as the verses of the Quran and the sayings of the Prophet which urged people to learn and seek knowledge, the mosque, the concrete symbol of Islam, was the most important centre of learning in the Muslim world. Indeed, in most Muslim countries, the word Jami' means at once both mosque and school. In Arabic, the word for university, Jami‘a, is derived from Jami' (mosque). No similar derivation exists in any other language or culture; and there is no better illustration of the association between Islam and education than this.
Figure 11: Taha Hussein (1889-1973) was one of the most influential Egyptian writers and intellectuals. He began his education at the kuttab (elementary school in the mosque), and then was sent to Al-Azhar University, where he was educated in religion and Arabic literature.
H. Djait et al.: Histoire de la Tunisie: Le Moyen Age. Société Tunisienne de Diffusion, Tunis.
Mary J. Deeb: "Al-Zaytuna", in The Oxford Encyclopaedia of the Modern Islamic World, edited by J. L. Esposito. Oxford University Press, 1995, vol. 4.
B. Dodge: Muslim Education in the Medieval Times. The Middle East Institute, Washington D.C., 1962.
Encyclopaedia of Islam, New Edition, vol. 3, Leiden, Brill, 1971.
Al-Khuli, Ali Muhammad al-Shadhili, Dawr al masajid al-tarikhi fi al-tathqif al-'ilmi, Cairo: Wazarat al-Awqaf, 1961.
Rom Landau, "The Karaouine at Fes", The Muslim World, 48 (April 1958): pp. 104-12.
R. Le Tourneau: Fès avant le protectorat. Société Maroccaine de Librairie et d'Edition, Casablanca, 1947, pp. 453¬-71.
R. Le Tourneau: Fes in the Age of the Merinids, transl. from French by B. A. Clement, University of Oklahoma Press, 1961.
R. S. Mackensen: "Background of the History of Muslim libraries", The American Journal of Semitic Languages and Literatures 51 (January 1935) 114-125, p. 123. See also issue 52 (October 1935) pp. 22-33, and 52 (January 1936): pp. 104-10.
George Makdisi: The Rise of Humanism in Classical Islam and the Christian West; Edinburg University Press, 1990.
George Makdisi: "Islamic Schools", Dictionary of the Middle Ages, vol. 11. Charles Scribners and Sons, 1988.
Al-Maqrizi, Ahmad Ibn Ali: Al-Mawaiz wa 'l-i'tibar fi dhikr al-khitat wa-'l-athar. Edited by Ahmed Ali al-Mulaiji, 3 vols. Beirut: Dar al Urfan, 1959.
M. Nakosteen: History of Islamic Origins of Western Education, 800-1350. University of Colorado Press, Boulder, Colorado, 1964.
J. Pedersen: The Arabic Book, Transl. Geoffrey French. Princeton University Press, Princeton, New Jersey, 1984.
J. Pedersen: "Some Aspects of the History of the Madrassa", Islamic Culture 3 (October 1929), pp. 525-37.
 F. B. Artz: The mind, The Mind of the Middle Ages; Third edition revised; The University of Chicago Press, 1980, p.151.
 J. Pedersen: The Arabic Book, Tr. Geoffrey French, Princeton University Press; Princeton, New Jersey, 1984, p. 37.
 M. Nakosteen: History of Islamic origins of Western Education, 800-1350; University of Colorado Press, Boulder, Colorado, 1964, p.48.
 In Western universities, these days, a foreign student has to pay considerable fees to receive training; and some branches of teaching (social sciences, and history in particular) are forbidden to foreigns from the world, and especially those holding ‘wrong' views.
 A.L. Tibawi: Islamic Education, Luzac and Company Ltd, London, 1972, p. 24.
 George Makdisi: "Islamic Schools", Dictionary of the Middle Ages, New York: Charles Scribners and Sons, 1988, vol. 11, p. 65.
 M. Alwaye: "Al-Azhar… in thousand years", Majallatu'l Azhar: Al-Azhar Magazine, English Section vol. 48 (July 1976/1¬6); in M. Sibai, Mosque Libraries. An Historical Study; Mansell Publishing Ltd; London and New York; 1987, p. 30.
 Pedersen, Johannes: "Some aspects of the history of the madrassa", Islamic Culture 3 (October 1929), pp. 525-37, p. 527.
 Al-Khuli: Dawr al-masajid, op. cit., p. 20, in M. Sibai, Mosque Libraries, op. cit. p. 30.
 R. Le Tourneau: Fès in the age of the Merinids, transl. from French by B. A. Clement, University of Oklahoma Press, 1961, p. 122.
Al-Azhar Mosque in Cairo in Egypt is a fundamental Islamic monument with many dimensions. Constructed by the Caliph Al-Mu'izz li-Din Allah for the newly established capital city in 970, it was the first mosque established in Cairo, a city that has since gained the nickname "the city of a thousand minarets. In this article, we present a short history of the Al-Azhar mosque and its progressive transformation into one of the most influential centres of Islamic learning for more than a millennium.
Islam and Learningby: Quoted from I.R.and L.L. Al-Faruqi God, Islam held, created the world and implanted in it His immutable patterns that make it a cosmos. He designed it in a way calling for wonder: perfect, orderly, malleable, its parts causally and teleologically bound to one another.
General Organisation of Education and Teaching Methods in Islamic Civilisationby: FSTC Limited Organised learning had been a feature of Islamic Civilisation since the beginning. The Prophet Muhammad would organise the education of a committed group who over time became the people of knowledge that spread Islam far and wide. This article traces Islamic systems of education through the centuries.
Learning Institutions in Islamby: FSTC Limited Learning institutions in various forms have existed for centuries in the Muslim World, the earliest of which are, al-Qarawiyyin, al-Azhar and al-Qayrawan. This short article traces the emergence and spread of madrasas as a popular form of institutionalised education that has long existed in Muslim lands, and provided education to more than just the elite of society as was the case in much of Europe.
The Abbasids’ House of Wisdom in Baghdadby: Dr. Subhi Al-Azzawi, AA Dipl, PhD (UCL), ARB Architect, Kent, UK The House of Wisdom was in fame, status, scope, size, resources, patronage, etc. similar to that of the present day British Library in London or the Nationale Bibliotheque in Paris, in addition to being an Academy for the Arts and the Sciences where scholars came together for dialogue, discussions and discourses.
Al-Ghazali's Theory of Education: Its Philosophy and Its Impactby: Nabil Nofal Al-Ghazali (1058-1111) was one of the most influential Muslim thinkers. A jurist, logician, theologian, and philosopher, he was honoured in the history of Islam with title of Hujjatul-Islam (the Proof of Islam)." Among his numerous contributions to the renewal of the intellectual life of the 5th Islamic century, he developed a theory of education rooted in his philosophy and aiming at improving the objectives and principles of education. Based on a reflexion on the methods and knowledge of teaching, and detailing the relationships between scholars, teachers and pupils, his education concept had a notable influence inside and outside the Muslim world.