In cancer research, fMRI is primarily used to study brain tumors and their impact on brain function. By observing the brain's activity, researchers can determine how a tumor affects cognitive and motor functions. This information is crucial for planning surgical interventions and other treatments. fMRI can also be used to monitor the effectiveness of treatments like chemotherapy and radiation therapy by tracking changes in brain activity over time.