They were the main and sometimes only outposts of education and literacy in a region.