The Residence Act of 1790 placed the capital on the Potomac River as a North-South compromise. Northern states wanted a commercial hub (Philadelphia, New York); Southern states (Virginia, Maryland) feared Northern dominance. A district on the Potomac—donated by both states—balanced regional interests.
Additional factors:
Construction began 1791; government moved from Philadelphia in 1800. The District of Columbia (named for Columbus) was reduced in 1847 when Virginia retroceded its portion (now Arlington/Alexandria).