Lafayette was appointed, at age 19, a major general in the Continental Army. He fought with distinction in the Battle of the Brandywine, and he commanded an army in Virginia. He helped trap British commander Lord Charles Cornwallis at Yorktown and force the British army’s surrender in 1781, which ultimately ensured the colonists’ victory in the American Revolution.