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 his entrapment by American and French forces, culminating in his surrender at the Siege of Yorktown in 1781.