No states border Washington, D.C. The District of Columbia is a federal district, not part of any state, created by the U.S. Constitution (Article I, Section 8) to serve as the national capital.
Land was ceded by Maryland (1790) and Virginia (1790; Virginia portion retroceded 1847). The District was designed to be independent of state control, ensuring federal authority over the capital.
People often say D.C. is "in Maryland" or "in Virginia," but it is a separate jurisdiction with its own government (mayor, council), laws, and non-voting congressional delegate.