From 1845 to 1849 Graham was Governor of North Carolina. Having declined appointments as ambassador to Spain and Russia in 1849, he was appointed Secretary of the Navy in the cabinet of President Millard Fillmore in 1850, and served until 1852. In the 1852 presidential election he was the unsuccessful Whig nominee for vice president, as Winfield Scott's running mate. Returning to North Carolina, he was a member of the state senate from 1854 to 1866, and senator in the ConfederateCongress from 1864 to 1865.
Later life and legacy
In 1866 Graham was once again elected to the United States Senate, but because North Carolina had not yet been readmitted to the Union, he did not present his credentials. From 1867 to 1875 he was a member of the board of trustees of the Peabody Fund, which provided educational assistance to the post-Civil WarSouth. From 1873 to 1875 he was an arbitrator in the boundary line dispute between Virginia and Maryland. He died in Saratoga Springs, New York, and is buried in the Presbyterian Church Cemetery in Hillsborough.
Montrose Gardens, located in Hillsborough, North Carolina, is one of Graham's former estates and still features some of the structures Graham and his family had built on the property.
One of Graham's sons, also named William A. Graham, became a state legislator and state agriculture commissioner. Two others, Augustus and John, also became politicians, while a daughter, Susan, married Walter Clark.