Minoxidil is a vasodilator medication primarily used to treat androgenetic alopecia (pattern baldness) and alopecia areata (autoimmune hair loss). It is available over-the-counter (OTC) in topical solutions, foams, or sprays, and was originally developed as an oral medication for high blood pressure.