The Battle of Yorktown marked the end of the fighting.