During the first millennium, nearly all religious communities of men and women were dedicated to prayer and contemplation. These monasteries were built in remote locations or were separated from the world by means of a precinct wall. The mendicant orders, founded in the 13th century, combined a life of prayer and dedication to God with active works of preaching, hearing confessions, and service to the poor, and members of these orders are known as friars rather than monks. At that time, and into the 17th century, Church custom did not allow women to leave the cloister if they had taken religious vows. Female members of the mendicant orders (Dominican, Augustinian and Carmelite nuns and Poor Clares) continued to observe the same enclosed life as members of the monastic orders.