Freemasonry traces its origins back to the medieval stonemason guilds assembled throughout Europe and England during the Dark Ages. As the era of cathedral building evolved and progressed, so too did these guilds evolve into tight-knit communities, or fraternities, designed to maintain peace and harmony among the workforce, as well as provide for the sick or injured, and widows and orphans. As jobs were finished, these stone masons were free to travel, from town to town, and from country to country, seeking further employment, and it is from this free movement that we have the term "freemason".
The freemasons gathered at job sites established temporary lodges, which served numerous purposes. First and foremost, these lodges provided the system of governance which freemasons were obligated to follow and uphold. Each master mason in the lodge was considered an equal, each having a vote in the actions of the lodge, and each acting in unison in accordance with lodge rules or resolutions. Disputes were resolved, accusations were judged, and pay was decided in these lodges. Secondly, lodges formed the brotherhood, or fraternity, in which charity was dispensed -- a mason who was injured or ill, or a widow or orphan. Also, lodges served as medieval workers' unions, in which requests for wage increases were decided.
Early freemasons were in possession of the keenest intellects of the time, being masters in architecture, geometry, sculpture, design, and engineering. Appreniticeships were long and enduring, to insure that only capable men, of sharp intellect and skill, were granted the titles of Master Mason, to erect the great cathedrals of the Middle Ages. This period in history is commonly referred to as operative masonry.