The primary pathway involves conversion of 17α-hydroxypregnenolone to DHEA by way of 17,20-lyase, with subsequent conversion of DHEA to androstenedione via the enzyme 3β-hydroxysteroid dehydrogenase. The secondary pathway involves conversion of 17α-hydroxyprogesterone, most often a precursor to cortisol, to androstenedione directly by way of 17,20-lyase. Thus, 17,20-lyase is required for the synthesis of androstenedione, whether immediately or one step removed.