The primary function of centrosomes is to organize the microtubule network during cell division. They are critical for the formation of the mitotic spindle, which ensures accurate chromosome segregation. Centrosomes also play a role in intracellular transport, cell polarity, and the spatial arrangement of cellular organelles.