A sawmill is a facility where logs are cut into boards.
A sawmill's basic operation is much like those of hundreds of years ago; a log enters on one end and dimensional lumber exits on the other end.
The Hierapolis sawmill, a Roman water-powered stone saw mill at Hierapolis, Asia Minor (modern-day Turkey) dating to the second half of the 3rd century AD is the earliest sawmill. It is also the earliest known machine to incorporate a crank and connecting rod mechanism.
Water-powered stone sawmills working with cranks and connecting rods, but without gear train, are archaeologically attested for the 6th century AD at the Eastern Roman cities Gerasa and Ephesus.
The earliest literary reference to a working sawmill comes from a Roman poet, Ausonius who wrote an epic poem about the river Moselle in Germany in the late 4th century AD. At one point in the poem he describes the shrieking sound of a watermill cutting marble. Marble sawmills also seem to be indicated by the Christian saint Gregory of Nyssa from Anatolia around 370/390 AD, demonstrating a diversified use of water-power in many parts of the Roman Empire.