The roots of social enterprise can be traced back to the medieval guilds, which were associations of artisans and craftsmen that regulated trade and provided mutual support. These guilds often incorporated elements of social responsibility, such as ensuring fair wages and working conditions, and contributing to community welfare.