A quarry is a type of mine called an open-pit mine, because it is open to the earth's surface. Another type of mine, a sub-surface mine, consists of underground tunnels or shafts. The most common purpose of quarries is to extract stone for building materials. Quarries have been used for thousands of years.