Matera is a city in the province of Matera in the region of Basilicata, in Southern Italy. It is the capital of the province of Matera and was the capital of the province of Basilicata from 1663 to 1806. The town lies in a small canyon carved out by the Gravina.