The function of CYP11B2 (cytochrome P450 family 11 subfamily B member 2, ENSG00000179142) is as follows. A cytochrome P450 monooxygenase that catalyzes the biosynthesis of aldosterone, the main mineralocorticoid in the human body responsible for salt and water homeostasis, thus involved in blood pressure regulation, arterial hypertension, and the development of heart failure (PubMed:11856349, PubMed:12530636, PubMed:1518866, PubMed:15356073, PubMed:1594605, PubMed:1775135, PubMed:22446688, PubMed:23322723, PubMed:9814482, PubMed:9814506). Catalyzes three sequential oxidative reactions of 11-deoxycorticosterone (21- hydroxyprogesterone), namely 11-beta hydroxylation, followed by two successive oxidations at C18 yielding 18-hydroxy and then 18-oxo intermediates (that would not leave the enzyme active site during the consecutive hydroxylation reactions), ending with the formation of aldosterone (PubMed:11856349, PubMed:12530636, PubMed:1518866, PubMed:1594605, PubMed:1775135, PubMed:22446688, PubMed:23322723, PubMed:9814506). Can also produce 18-hydroxycortisol and 18- oxocortisol, derived from successive oxidations of cortisol at C18, normally found at very low levels, but significantly increased in primary aldosteronism, the most common form of secondary hypertension (PubMed:15356073, PubMed:9814482). Mechanistically, uses molecular oxygen inserting one oxygen atom into a substrate and reducing the second into a water molecule. Two electrons are provided by NADPH via a two-protein mitochondrial transfer system comprising flavoprotein FDXR (adrenodoxin/ferredoxin reductase) and nonheme iron-sulfur protein FDX1 or FDX2 (adrenodoxin/ferredoxin) (PubMed:11856349, PubMed:1594605, PubMed:23322723, PubMed:23685396, PubMed:9814506). Besides its role in the biosynthesis of mineralocorticoids and glucocorticoids, it can also participate in the androgen metabolic pathway, converting testosterone (17beta-hydroxy-4-androsten-3-one) to 11beta,17beta-dihydroxyandrost-4- ene-3-one (PubMed:23685396). Can also use progesterone as substrate (PubMed:33189850). {ECO:0000269|PubMed:11856349, ECO:0000269|PubMed:12530636, ECO:0000269|PubMed:1518866, ECO:0000269|PubMed:15356073, ECO:0000269|PubMed:1594605, ECO:0000269|PubMed:1775135, ECO:0000269|PubMed:22446688, ECO:0000269|PubMed:23322723, ECO:0000269|PubMed:23685396, ECO:0000269|PubMed:33189850, ECO:0000269|PubMed:9814482, ECO:0000269|PubMed:9814506, ECO:0000305|PubMed:23322723}.