A
sawmill is a facility where
logs are cut into
lumber. Prior to the invention of the sawmill, boards were rived (split) and planed, or more often sawn by two men with a whipsaw, one above and another in a saw pit below. The earliest known mechanical mill is the
Hierapolis sawmill, a Roman water-powered stone mill at
Hierapolis,
Asia Minor dating back to the 3rd century AD. Other water-powered mills followed and by the 11th century they were widespread in Islamic Spain and North Africa, the Middle East and Central Asia, and in the next few centuries, spread across Europe. The circular motion of the wheel was converted to a reciprocating motion at the saw blade. Generally, only the saw was powered, and the logs had to be loaded and moved by hand. An early improvement was the development of a movable carriage, also water powered, to move the log steadily through the saw blade.