Tamoxifen is a selective estrogen receptor modulator (SERM) that works by binding to estrogen receptors, blocking estrogen’s effects on breast tissue while acting as a partial agonist in other tissues. It is primarily used to treat estrogen receptor-positive breast cancer.