 His code was rejected by the unreconstructed legislature of 1865, but formed the basis for the codification of 1872.Petigru died in Charleston, South Carolina, in 1863.He is buried in St. Michael's Churchyard.