The primary function of cortical granules is to modify the zona pellucida, the glycoprotein-rich extracellular matrix surrounding the oocyte. Upon fertilization, the granules release their contents, which include enzymes such as proteases and glycosidases. These enzymes alter the structure of the zona pellucida, making it impermeable to additional sperm, thereby preventing polyspermy.