James City County and York County are each one of the eight original shires of Virginia formed in 1634, and are two of the oldest counties in Virginia as well as the present United States. The City of Williamsburg, long-located along the border of the two counties, was founded in 1623 as Middle Plantation, initially a fortified community midway across the Virginia Peninsula on high ground. It was selected as the site of the new College of William and Mary, a long-desired effort of the colonists which was established by a Royal Charter issued in 1693 by King William III and Queen Mary II, joint sovereigns of England, Scotland and Ireland. Several years later, partially due a persuasive presentation to the House of Burgesses by the Reverend Dr. James Blair and a group of his students, the tiny community was selected to replace the harsh weather and other environmental conditions at Jamestown and became the capital of the Colony of Virginia in 1698, renamed the following year in honor of King William. Williamsburg became the first chartered city in Virginia in 1722 during colonial times, and became an independent city under a change in Virginia's state constitution in 1871. The first mental health facility in the United States was established at Williamsburg in 1770, and its successor, Eastern State Hospital, a state-owned facility, continues to operate nearby in modern times.