Professional musicians first appeared in medieval Europe during the tenth century. These jongleurs, or minstrels, earned a precarious living by travelling alone or in small groups from village to village and castle to castle, singing, playing, dancing, performing magic tricks and exhibiting trained animals. These itinerant performers were often viewed as social outcasts, and were frequently denied legal protection as well as the sacraments of the church. With the revival of the European economy and the growth of towns during the twelfth century the opportunity for more stable living conditions emerged, and the minstrels began to organise themselves into brotherhoods or confraternities, eventually developing guilds of musicians. By forming corporations and thus voluntarily placing themselves under the power of rulers or civic authorities, the musicians could achieve a modicum of social acceptance and legal protection.