Alendronate is a medication used to treat osteoporosis by slowing bone loss and helping maintain bone density.