Corals obtain energy in two ways: firstly, through photosynthesis by their symbiotic algae, and secondly by taking up small food particles such as plankton directly from the water. In scientific terms, this process is known as "heterotrophy."