Dermatologic surgery is the treatment of medical and cosmetic skin, nail, and hair conditions. Dermatologists are all trained to practice dermatologic surgery.