British troops over Liberty Poles from 1766 to 1776. The Stamp Act Congress met in New York City in 1765 in the first organized resistance to British authority across the colonies. After the major defeat of the Continental Army in the Battle of Long Island in late 1776, General George Washington withdrew to Manhattan Island, but with the subsequent defeat at the Battle of Fort Washington the island was effectively left to the British. The city became a haven for loyalist refugees, becoming a British stronghold for the entire war. Consequently, the area also became the focal point for Washington's espionage and intelligence-gathering throughout the war. New York was greatly damaged twice by fires of suspicious origin, with the Loyalists and Patriots accusing each other of starting the conflagration. The city became the political and military center of operations for the British in North America for the remainder of the war. Continental Army officer Nathan Hale was hanged in Manhattan for espionage. In addition, the British began to hold the majority of captured American prisoners of war aboard prison ships in Wallabout Bay, across the East River in Brooklyn. More Americans lost their lives aboard these ships than died in all the battles of the war. The British occupation lasted until November 25, 1783. George Washington triumphantly returned to the city that day, as the last British forces left the city. Federal and early America: 1784–1854 Starting in 1785 the Congress met in the city of New York under the Articles of Confederation. In 1789, New York became the first national capital under the new Constitution. The Constitution also created the current Congress of the United States, and its first sitting was at Federal Hall on Wall Street. The first Supreme Court sat there. The United States Bill of Rights was drafted and ratified there. George Washington was inaugurated at Federal Hall. New York remained the national capital until 1790, when the role was transferred to Philadelphia. During the 19th century, the city was transformed by immigration, a visionary development proposal called the Commissioners' Plan of 1811 which expanded the city street grid to encompass all of Manhattan, and the opening of the Erie Canal in 1825, which connected the Atlantic port to the vast agricultural markets of the Midwestern United States and Canada. By 1835, New York had surpassed Philadelphia as the largest city in the United States. New