It is not necessary to remove a tampon before performing ghusl (ritual purification). Ghusl is performed to cleanse the entire body, and the presence of a tampon does not invalidate the ghusl. However, if the tampon is due for a change, it is best to remove and replace it after completing the ghusl.