 He later returned to his studies and graduated from Harvard in 1854.In 1855, Gary was admitted to the bar in South Carolina and began practicing as a lawyer in Edgefield.Gary was elected in 1860 to the South Carolina House of Representatives as a secessionist.