Mostly, surgery is necessary for postoperative infections. So that bacteria and infected tissues can be washed away. In certain cases, the infection may result in instability of the spine. Such situations may need surgery to remove the weakness of the spine that causes instability. Surgery is also suggested to relieve the pressure on the spinal cord caused due to the infection.