The origins of Freemasonry have been lost in the mists of time.
The Premier Grand Lodge of England was formed in 1717; prior to this Freemasonry was known to exist in Scotland for many years.
Many Masonic Scholars have researched and come to different conclusions, however, there is a definite link between Freemasonry and operative masons.
There also appears to be a link between Freemasonry and the Knights Templars.