Periodontal surgery is used to eliminate the bacterial plaque when the odontologist detects that the tissue around the teeth is not healthy and does not respond properly to conventional periodontal treatment.