fMRI operates on the principle of Blood Oxygen Level Dependent (BOLD) contrast. When a particular brain region is more active, it consumes more oxygen. The vascular system responds by increasing blood flow to that area, leading to changes in the ratio of oxyhemoglobin to deoxyhemoglobin. These changes alter the magnetic properties of surrounding tissues, which can be detected and visualized using fMRI.