Finasteride's mechanism of action involves inhibiting the enzyme 5α-reductase. This enzyme converts testosterone into DHT, a potent androgen that plays a significant role in both the development of BPH and hair loss. By reducing DHT levels, finasteride helps shrink the prostate in men with BPH and slows hair loss in those with male pattern baldness.