Zooxanthellae perform photosynthesis, converting sunlight into energy, which is then shared with their coral hosts. This symbiotic relationship is essential for coral health and survival as it provides the necessary nutrients that corals need to build their calcium carbonate skeletons.