paragraph_text: The Battle of Middleburg took place from June 17 to June 19, 1863, in Loudoun County, Virginia, as part of the Gettysburg Campaign of the American Civil War.

paragraph_text: The Battle of Dinwiddie Court House was fought on March 31, 1865, during the American Civil War at the end of the Richmond-Petersburg Campaign and in the beginning stage of the Appomattox Campaign. Along with the Battle of White Oak Road which was fought simultaneously on March 31, the battle involved the last offensive action by General Robert E. Lee's Confederate Army of Northern Virginia attempting to stop the progress of Lieutenant General Ulysses S. Grant's Union Army (Army of the Potomac, Army of the Shenandoah and Army of the James). Grant's forces were moving to cut the remaining Confederate supply lines and to force the Confederates to extend their defensive lines at Petersburg, Virginia and Richmond, Virginia to the breaking point, if not to force them into a decisive open field battle.

paragraph_text: Christopher C. Bruton (or Braton) (1841–1867) was a Union Army officer during the American Civil War. He received the Medal of Honor for gallantry during the Battle of Waynesboro, Virginia fought on March 2, 1865. It was the final battle for Confederate Lt. Gen. Jubal Early, whose force was destroyed.

paragraph_text: West Virginia is one of two American states formed during the American Civil War (1861 -- 1865), along with Nevada, and is the only state to form by seceding from a Confederate state. It was originally part of the British Virginia Colony (1607 -- 1776) and the western part of the state of Virginia (1776 -- 1863), whose population became sharply divided over the issue of secession from the Union and in the separation from Virginia, formalized by admittance to the Union as a new state in 1863. West Virginia was one of the Civil War Border states.

paragraph_text: John Nicholas (January 19, 1764 – December 31, 1819) was an American lawyer, farmer, and politician from Williamsburg, Virginia. He represented Virginia in the U.S. House from 1793 to 1801.

paragraph_text: The Battle of Antietam / ænˈtiːtəm /, also known as the Battle of Sharpsburg, particularly in the Southern United States, was a battle of the American Civil War, fought on September 17, 1862, between Confederate General Robert E. Lee's Army of Northern Virginia and Union General George B. McClellan's Army of the Potomac, near Sharpsburg, Maryland and Antietam Creek. Part of the Maryland Campaign, it was the first field army -- level engagement in the Eastern Theater of the American Civil War to take place on Union soil. It was the bloodiest day in United States history, with a combined tally of 22,717 dead, wounded, or missing.

paragraph_text: The Gibson-Todd House was the site of the hanging of John Brown, the abolitionist who led a raid on Harpers Ferry, West Virginia before the opening of the American Civil War. The property is located in Charles Town, West Virginia, and includes a large Victorian style house built in 1891.

paragraph_text: Ulric Lyona Crocker (September 5, 1843 – February 2, 1913) was a Union Army soldier during the American Civil War. He received the Medal of Honor for gallantry during the Battle of Cedar Creek fought near Middletown, Virginia on October 19, 1864. The battle was the decisive engagement of Major General Philip Sheridan's Valley Campaigns of 1864 and was the largest battle fought in the Shenandoah Valley.

paragraph_text: West Virginia became a state following the Wheeling Conventions of 1861, after the American Civil War had begun. Delegates from some Unionist counties of northwestern Virginia decided to break away from Virginia, although they included many secessionist counties in the new state. West Virginia was admitted to the Union on June 20, 1863, and was a key border state during the war. West Virginia was the only state to form by separating from a Confederate state, the first to separate from any state since Maine separated from Massachusetts, and was one of two states admitted to the Union during the American Civil War (the other being Nevada). While a portion of its residents held slaves, most of the residents were yeomen farmers, and the delegates provided for gradual abolition of slavery in the new state constitution.

paragraph_text: Most of the battles in the Eastern Theater of the American Civil War took place in Virginia because the Confederacy had to defend its national capital at Richmond, and public opinion in the North demanded that the Union move ``On to Richmond! ''The successes of Robert E. Lee in defending Richmond are a central theme of the military history of the war. The White House of the Confederacy, located a few blocks north of the State Capitol, was home to the family of Confederate leader Jefferson Davis.

paragraph_text: Daniel P. Reigle (February 19, 1841 – March 19, 1917) was a Union Army soldier during the American Civil War. He received the Medal of Honor for gallantry during the Battle of Cedar Creek fought near Middletown, Virginia on October 19, 1864. The battle was the decisive engagement of Major General Philip Sheridan’s Valley Campaigns of 1864 and was the largest battle fought in the Shenandoah Valley.

paragraph_text: The site of Richmond had been an important village of the Powhatan Confederacy, and was briefly settled by English colonists from Jamestown in 1609, and in 1610–1611. The present city of Richmond was founded in 1737. It became the capital of the Colony and Dominion of Virginia in 1780. During the Revolutionary War period, several notable events occurred in the city, including Patrick Henry's "Give me liberty or give me death" speech in 1775 at St. John's Church, and the passage of the Virginia Statute for Religious Freedom written by Thomas Jefferson. During the American Civil War, Richmond served as the capital of the Confederate States of America. The city entered the 20th century with one of the world's first successful electric streetcar systems, as well as a national hub of African-American commerce and culture, the Jackson Ward neighborhood.

paragraph_text: George G. Moore (July 2, 1844 – November 26, 1925) was a Union Army soldier during the American Civil War. He received the Medal of Honor for gallantry during the Battle of Fisher's Hill near Strasburg, Virginia fought September 21–22, 1864. The battle was one of the engagements of the Valley Campaigns of 1864.

paragraph_text: The Capitol at Williamsburg, Virginia housed the House of Burgesses of the Colony of Virginia from 1705, when the capital was relocated there from Jamestown, until 1779, when the capital was relocated to Richmond. Two capitol buildings served the colony on the same site: the first from 1705 until its destruction by fire in 1747; the second from 1753 to 1779.

paragraph_text: The Battle of Tom's Brook was fought on October 9, 1864, in Shenandoah County, Virginia, during Philip Sheridan's Shenandoah Valley Campaign of the American Civil War. It resulted in a significant Union victory, one that was mockingly dubbed The Woodstock Races for the speed of the Confederate withdrawal.

paragraph_text: William Henry Harman (February 17, 1828  – March 2, 1865) was a brigadier general in the Virginia militia and colonel in the Confederate States Army during the American Civil War (Civil War). Prior to the war, Harman had served as a second lieutenant in the 1st Virginia Infantry Regiment during the Mexican–American War, after which he had become a lawyer. He was commonwealth's attorney for Augusta County, Virginia from 1851 until the beginning of the Civil War, when he was appointed a brigadier general in the state militia.

paragraph_text: John W. Blunt (May 5, 1840 – January 21, 1910) was a Union Army officer during the American Civil War. He received the Medal of Honor for gallantry during the Battle of Cedar Creek fought near Middletown, Virginia on October 19, 1864. The battle was the decisive engagement of Major General Philip Sheridan's Valley Campaigns of 1864 and was the largest battle fought in the Shenandoah Valley.

paragraph_text: Although born in New York, he went to school in Virginia and fought in the Confederate Army during the American Civil War. After attending college in Germany and Virginia, he became a lawyer. He later served in the Virginia State Senate, as a member of the United States House of Representatives from Virginia's second congressional district, and as a Virginia Circuit Court judge.

paragraph_text: John Quincy Marr (May 27, 1825 – June 1, 1861) was a Virginia militia company captain and the first Confederate soldier killed by a Union soldier in combat during the American Civil War. Marr was killed at the Battle of Fairfax Court House, Virginia on June 1, 1861. Previously one of Fauquier County's two delegates to the Virginia Secession Convention of 1861, Marr initially opposed his state's secession from the Union but ultimately supported secession, as did voters shortly before his fatal skirmish.

paragraph_text: Cold Harbor is an unincorporated community in Hanover County, Virginia. The Battle of Cold Harbor was fought in the area in 1864, during the American Civil War.

Question: When did the capital of Virginia moved from John Nicholas's birth city to where the civil war was fought?
Answer: 1779