A dermatologist is a doctor who specializes in treating various skin problems, including infections and other skin conditions.