Flap surgery is a type of gum procedure in which the gums are separated from the teeth and folded backwards temporarily in order to allow the dentist to reach the root of the tooth and the bone. Flap surgery is basically used for the treatment of periodontitis.