Coral reefs form through a process where tiny coral polyps secrete calcium carbonate to create hard exoskeletons, which grow and accumulate over time, forming the structure of the reef. The polyps live in colonies and build upon the remains of previous generations, ultimately creating the diverse and vibrant coral reef ecosystems that we see today.