The spongy mesophyll's function is to allow for the interchange of gases (CO 2) that are needed for photosynthesis.