fMRI detects brain activity by measuring the Blood Oxygen Level Dependent (BOLD) signal. When a brain region is more active, it consumes more oxygen. The vascular system responds by increasing the flow of oxygen-rich blood to that area, which can be detected and mapped by fMRI.