Prophylactic medications work through various mechanisms depending on the type of cancer they aim to prevent. Some medications may inhibit the growth of cancer cells, while others may modulate the immune system to better recognize and destroy cancer cells. For instance, certain drugs can block the actions of [hormones]() that fuel the growth of cancers, such as [breast cancer]() or [prostate cancer]().