A cactus does not have leaves because it lives in dry places. Leaves transpire, and this can waste water. So, the cactus saves water by having no leaves. The green parts of the cactus are actually its stems. Because the stems are green, they do the photosynthesis for the cactus. They also grow prickly needles to protect the cactus from animals that want to eat it.