 It was established as a town in 1752 by an act of the Virginia General Assembly and was named for Portsmouth, England.In 1767, Andrew Sprowle, a shipbuilder, founded the Gosport Shipyard adjacent to Portsmouth.The Gosport Shipyard at Portsmouth was owned by the Commonwealth of Virginia after the American Revolutionary War and was sold to the new United States federal government.