after the confederate surrender, williams returned to granville county, north carolina and developed the oxford and henderson railroad, of which he was the president. in 1883, he was elected to the north carolina house of representatives for a single term.