In 1864 it was connected by the Ferrovia Porrettana, from Pistoia to Bologna, later expanded with an electric tramway line (Ferrovia Alto Pistoiese), from Pracchia to San Marcello.
The Ferrovia Porrettana railway line, connecting Pistoia and Bologna, was established in 1864. The Ferrovia Alto Pistoiese tramway line, extending from Pracchia to San Marcello, was added later.