The mistake British General Charles Cornwallis made that ultimately caused his defeat was:
He retreated to Yorktown where he was trapped.
This decision led to the Siege of Yorktown, where American and French forces effectively surrounded Cornwallis and ultimately forced his surrender in 1781.