Tamoxifen functions by modifying the estrogen receptor activity in different tissues. In breast tissue, it acts as an antagonist, blocking estrogen from binding to its receptor and thereby inhibiting tumor proliferation. However, in other tissues, such as the uterus, it can act as an agonist, which underscores the importance of understanding its pharmacodynamics.