During the 1760s and 1770s, relations with the Thirteen Colonies turned from benign neglect to outright revolt, primarily because of the British Parliament's insistence on taxing colonists without their consent to recover losses incurred protecting the American Colonists during the French and Indian War (1754–1763). In 1775, the American Revolutionary War began, as the Americans trapped the British army in Boston and suppressed the Loyalists who supported the Crown. In 1776 the Americans declared the independence of the United States of America. Under the military leadership of General George Washington, and, with economic and military assistance from France, the Dutch Republic, and Spain, the United States held off successive British invasions. The Americans captured two main British armies in 1777 and 1781. After that King George III lost control of Parliament and was unable to continue the war. It ended with the Treaty of Paris by which Great Britain relinquished the Thirteen Colonies and recognized the United States. The war was expensive but the British financed it successfully.