Finasteride is a medication primarily used to treat benign prostatic hyperplasia (BPH) and male pattern baldness. It functions as a type II 5α-reductase inhibitor, which means it blocks the conversion of testosterone to dihydrotestosterone (DHT). This reduction in DHT levels is beneficial in conditions like BPH and androgenetic alopecia.