They are trained to diagnose and treat a wide range of conditions, including cavities, gum disease, and misaligned teeth, and may also perform surgery on the teeth, gums, or bone. Dentists do not need to have the same level of medical knowledge as doctors, as they do not treat medical conditions outside of the mouth.