Religion was completely related to education. In fact, the religious bodies were educational institutions also. In the medieval period, educational institutions (Pathashalas and Maktabs) were related to religious places (temples and mosques).
Buddha Vihars and Mathas (monasteries) were closely related to education. An attempt was made to inculcate morality through religious education. This was one of the aims of education also.
Religion was an important aspect not only in Indian traditions, but also in the European traditions. Education of children in Europe was related to the church and was given under their protection. Monks and priests were the organisers and teachers.
Different religious institutions have made outstanding contribution in the field of education. In India the efforts of Arya Samaj Sanatan Dharm, Jain Dharm and Christian missionaries etc., are praiseworthy. Churches in Europe and U.S.A. hold a key position in the organisation of education, even to-day.