The town's water power attracted industry, including five lumber mills, two sash, blind and door factories, two brickyards, a foundry, a rake factory, three gristmills, nearly a dozen carriage factories, a cheese factory, two corn canning factories, two reaper machine factories, a spool factory and a tannery. As a regional center for manufacturing, trade and agriculture, Farmington was designated county seat when Franklin County was formed in 1838. In 1859, the Androscoggin Railroad completed its line from Leeds Junction to Farmington, carrying freight and tourists.