Thalheim is a town in the Erzgebirgskreis district, in the Free State of Saxony, Germany, 5 km east of Stollberg, and 16 km south of Chemnitz.