Farmington is a city in Dakota County, Minnesota, United States. The population was 21,086 at the 2010 census. It is a part of the Minneapolis-St. Paul metropolitan area.
Farmington was founded at the intersection of the Minnesota Central and the Hastings and Dakota railroads, and the Vermillion River. The original name of the town was Dakota City. The popular city train station was Farmington Station and non-residents began confusing the two names and identifying the town as Farmington. The town's name was then permanently changed from Dakota City to Farmington.
Farmington is home to three properties listed on the Register of Historic Places for Dakota County: the Daniel F. Akin House, the Church of the Advent, and the Exchange Bank Building.