Frederick is a city in, and the county seat of, Frederick County, Maryland, United States. It is located at an important crossroads at the intersection of a major north–south Native American trail and east–west routes to the Chesapeake Bay, both at Baltimore and what became Washington, D.C., and across the Appalachian mountains to the Ohio River watershed. Frederick's population was 78,171 people as of the 2020 census, making it the second-largest incorporated city in Maryland behind Baltimore. It is a part of the Washington metropolitan area, which is part of a greater Washington–Baltimore combined statistical area.