The Revolutionary War led to the signing of the Declaration of Independence through several key military battles. The Americans won important victories at Trenton and Saratoga through surprise attacks and British reinforcements not arriving. This caused France to ally with the Americans. Finally, at Yorktown in 1781, American and French forces surrounded British troops and forced their surrender. This led Britain to sign the Treaty of Paris in 1783, recognizing American independence.