In the Devonian, reefs were constructed by rugose corals, which grew in the shape of horns, and tabulate corals, which grew in the shape of honeycombs. Both rugose corals and tabulate corals were only distantly related to today’s scleractinian corals, and both orders died out in the great extinction at the end of the Permian.