Danazol is indicated for the treatment of endometriosis, a condition where the tissue lining the uterus grows outside of it, causing pain and other symptoms. It is also used for the management of fibrocystic breast disease and hereditary angioedema, a rare genetic condition characterized by episodes of swelling in various parts of the body.