Finasteride is a medication primarily known for its use in treating benign prostatic hyperplasia (BPH) and male pattern baldness. It works by inhibiting the action of the enzyme 5-alpha-reductase, which converts testosterone into dihydrotestosterone (DHT). Elevated levels of DHT are associated with hair loss and prostate enlargement.