Religiously, the Church provided guidance for all souls. Almost nobody outside of monasteries and royalty could read during the center Ages, so commoners had to depend upon the Church to produce religious teaching. This provided comfort to people that had very short lives packed with uncertainty. During the center Ages, most schooling passed off in monasteries, convents, and cathedrals. This pattern was established under Charlemagne, who encouraged the Church to show people to read and write. During his reign, scholars developed a replacement type of writing that helped make reading easier.