According to a nearby Virginiastate highway marker, Onancock was founded in 1680. A courthouse was established some years after, and militia barracks established during the Revolution. Some thirteen months after Cornwallis' October 1781 surrender at Yorktown, Commodore Zedechiah Whaley sought aid from Onancock during a naval campaign against British barges of war that had been harassing the shores and farms of Chesapeake Bay. On November 28, 1782 he sailed up Onancock Creek and appealed to Lt. Colonel James Cropper, who rounded up 25 local men in support. They boarded Whaley's flagship, Protector, and continued his siege upon the British flotilla. In what became the Battle of Kedges Strait three of four of Whaley's barges turned back under heavy British fire, leaving the Protector alone to press the fight. Vastly outnumbered, ultimately 25 of its 65 men were killed or wounded, 29 captured, and only 11 escaped during a climactic action on November 30. Whaley surrendered - in the last naval action of the Revolution - on the very day the Treaty of Paris seeking to finally end the hostilities between the two nations was drafted. It would be another year and a half yet until the completed treaty was signed, ratified, and exchanged, ultimately becoming effective on May 12, 1784. The highway marker also indicates that the home of Virginia governor Henry A. Wise, Onley, is nearby. In the mid-19th century, Onancock was a point along the stagecoach route between Wilmington, Delaware and Eastville, Virginia. The Onancock Historic District, Cokesbury Church, Hopkins and Brother Store, and Kerr Place are listed on the National Register of Historic Places.
At the 2000 census there were 1,525 people, 656 households, and 392 families living in the town. The population density was 1,452.3 people per square mile. There were 733 housing units at an average density of 698.0 per square mile. The racial makeup of the town was 66.43% White, 31.41% African American, 0.46% Native American, 0.07% Asian, 0.66% from other races, and 0.98% from two or more races. Hispanic or Latino of any race were 2.89%. Of the 656 households 23.6% had children under the age of 18 living with them, 41.3% were married couplesliving together, 16.3% had a female householder with no husband present, and 40.1% were non-families. 38.0% of households were one person and 24.7% were one person aged 65 or older. The average household size was 2.19 and the average family size was 2.82. The age distribution was 21.2% under the age of 18, 6.8% from 18 to 24, 21.6% from 25 to 44, 24.1% from 45 to 64, and 26.3% 65 or older. The median age was 45 years. For every 100 females, there were 80.3 males. For every 100 females age 18 and over, there were 73.1 males. The median household income was $28,214 and the median family income was $37,039. Males had a median income of $25,956 versus $19,250 for females. The per capita income for the town was $18,393. About 8.4% of families and 15.3% of the population were below the poverty line, including 20.4% of those under age 18 and 15.6% of those age 65 or over.