This medication is used to treat a certain type of skin disorder (dermatitis herpetiformis). It is also used with other drugs to treat Hansen's disease. Dapsone belongs to a class of drugs known as sulfones. It works by decreasing swelling (inflammation) and stopping the growth of bacteria. This medication will not work for viral infections (e.g., common cold, flu).