Farmington is a town in and the county seat of Franklin County, Maine, United States. Farmington is home to the University of Maine at Farmington, the Nordica Memorial Homestead, and the annual Farmington Fair. Its 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 mowing machine factories, a spool factory and a tannery. Regional center for manufacturing, trade and agriculture, Farmington was designated county seat when in 1838 Franklin County formed. In 1859, the Androscoggin Railroad completed its line from Leeds Junction to Farmington, carrying freight and tourists.