Ketoconazole, sold under the brand name Nizoral among others, is an antiandrogen and antifungal medication used to treat a number of fungal infections. Applied to the skin it is used for fungal skin infections such as tinea, cutaneous candidiasis, pityriasis versicolor, dandruff, and seborrheic dermatitis. Taken by mouth it is a less preferred option and only recommended for severe infections when other agents cannot be used. Other uses include treatment of excessive male-patterned hair growth in women and Cushing's syndrome. Common side effects when applied to the skin include redness. Common side effects when taken by mouth include nausea, headache, and liver problems. Liver problems may result in death or the need for a liver transplantation. Other severe side effects when taken by mouth include QT prolongation, adrenocortical insufficiency, and anaphylaxis. It is an imidazole and works by hindering the production of ergosterol required for the fungal cell membrane, thereby slowing growth. Ketoconazole was patented in 1977 by Belgian pharmaceutical company Janssen, and came into medical use in 1981. It is available as a generic medication and formulations that are applied to the skin are over the counter in the United Kingdom. In 2020, it was the 170th most commonly prescribed medication in the United States, with more than 3million prescriptions. The formulation that is taken by mouth was withdrawn in the European Union and in Australia in 2013, and in China in 2015. In addition, its use was restricted in the United States and Canada in 2013. Medical uses Topical antifungal Topically administered ketoconazole is usually prescribed for fungal infections of the skin and mucous membranes, such as athlete's foot, ringworm, candidiasis (yeast infection or thrush), jock itch, and tinea versicolor. Topical ketoconazole is also used as a treatment for dandruff (seborrheic dermatitis of the scalp) and for seborrheic dermatitis on other areas of the body, perhaps acting in these conditions by suppressing levels of the fungus Malassezia furfur on the skin. Systemic antifungal Ketoconazole has activity against many kinds of fungi that may cause human disease, such as Candida, Histoplasma, Coccidioides, and Blastomyces (although it is not active against Aspergillus), chromomycosis and paracoccidioidomycosis. First made in 1977, ketoconazole was the first orally-active azole antifungal medication. However, ketoconazole has largely been replaced as a first-line systemic antifungal medication by other azole antifungal agents, such as itraconazole, because of ketoconazole's greater toxicity, poorer absorption, and more limited spectrum of activity.