Allegany County, Maryland was formed in 1789 from Washington County, Maryland.