Minoxidil works by prolonging the anagen phase (growth phase) of the hair cycle and by enlarging hair follicles, which leads to the growth of thicker and longer hair strands. It is applied topically to the scalp, where it stimulates hair follicles and promotes regrowth.