The guilds were born from a mix of Spanish and Sardinian culture in the sixteenth century, they are called Gremi because, similar to religious brotherhoods these fraternities pay homage to a patron saint. These fraternities, which differ from what happened in Italy in the municipalities where, from the twelfth century, the gremi's had a prominent role in politics and in the administration and economic role of the city, in Sardinia they have a purely social and religious.
The 44 gremi Sardinian arose exclusively in the Royal Cities of Cagliari, Sassari, Alghero, Iglesias, Bosa, Castelsardo and Oristano, they were regulated by strict statutes and laws from Barcelona whose ruling articles expressed and regulated the manner and forms of handicraft production. Barcelona set the requiring prices and defined the career path of individuals who chose craftsmen professions. These laws stated that only after a long apprenticeship and passing an exam could one become a masters of the trade, and then open their own shop. Only those who had joined the gremio could practice the art, and then open a shop in the city. The shareholders also, that on the occasion of the feast of the patron saint of the corporation renewed the corporate office were required to participate in all the most important events of the religious calendar of the year as well as the continuing work of mutual aid towards the most needy members.
The gremi, which then accounted for a good part of the whole local community, also actively participated in the many festive occasions, marching with their flags to religious processions or venturing, also on horseback, in carousels and masked. These institutions, between the sixteenth and the nineteenth century had a strategic role in the economy and society of Sardinia, but were suppressed in law by an Act of the Kingdom of Italy in 1864 as they were considered totally outdated in a climate of free trade and free production.
Despite this measure, only in the city of Sassari and Oristano, in virtue of the fundamental role played for centuries in these communities, some gremi, despite losing the monitoring role of the arts and productions, continued to practice their festivals and traditions. In the town of Oristano, where there are seven corporations of trade, farmers, carpenters, masons, tanners, blacksmiths, potters and tailors, even today, the gremio of the peasants and the carpenters, continue their parties, and among these, the traditional Sartiglia, they are the organizers, respectively, on the last Sunday and Tuesday of Carnival.