The gFOBT utilizes the chemical guaiac, which reacts with hemoglobin in the blood. If blood is present in the stool, the guaiac will cause a color change when exposed to hydrogen peroxide, indicating a positive result. This process is crucial for detecting microscopic amounts of blood that are not visible to the naked eye.