What was the Battle of Yorktown?

Yorktown fought two notable battles. The 1781 battle was with the British French and Americans and the 1862 campaign was part of the Peninsula Campaign.