The Virginia Military Institute (VMI) is a state-funded military academy founded in 1839. Located in the Shenandoah Valley town of Lexington, it was only the second governmental military academy in the United States, after the United States Military Academy at West Point, New York (founded in 1802), and represented increased educational opportunity for non-elite southern men. Future Confederate generalsand were VMI instructors during ‘s raid on the U.S. arsenal at in 1859, and they led cadets to his execution in Charles Town, where they helped to provide security. During the (1861–1865), approximately 1,800 VMI graduates served (including 19 in the U.S. Army), with about 250 of them killed in action. Cadets famously were called to fight in the , contributing to the Confederate victory on May 15, 1864. In June, Union general David Hunter ordered the school burned, and the cadets relocated to , where they helped to defend the Confederate capital.