A dermatologist is a medical expert who specializes in diagnosing and treating skin, hair, and nail conditions.