Monasteries were places where people who wanted to devote their life to prayer and devotion of God could spend their life without outside interference. At certain times in history they also performed other functions such as preparation of books before printing press or protection of Church's earthly wealth.