After three weeks of non-stop bombardment, both day and night, from artillery, Cornwallis surrendered to Washington in the field at Yorktown on October 17, 1781, effectively ending the War for Independence.