Coral

Coral block is a solid block which comes in five variants: tube, brain, bubble, fire, and horn.

Dead coral block is a solid block which also comes in the same variants as coral blocks.

Coral can only be placed underwater. It comes in the same variants as coral blocks.

Coral fans are blocks that can only be placed underwater, on the 4 sides of blocks: north, south, west, east. They can also be placed on top of blocks. Like coral blocks, they come in five variants.

Dead coral fans are another type of coral that comes in the same five variants as the other types.

Obtaining
Coral blocks and dead coral blocks will only drop as an item if mined with any type of pickaxe. Otherwise, they will drop nothing.

Coral plants and fans can be instantly mined and will always drop themselves.

Natural generation
Coral, coral blocks, and coral fans naturally generate in coral reef structures. These are found in warm oceans.

In the Java Edition, coral fans do not generate naturally. Dead coral fans also do not generate naturally.

Usage
All 4 types and variants of coral can be used as a building or decoration block.

Sea pickles will spread on full blocks if bone mealed.

Dead coral blocks
In order for coral blocks to stay alive, at least 1 of the blocks touching it must be water. If placed outside of water, it will irreversibly and instantly / eventually transform into its respective dead coral block.

Trivia

 * Despite being called plants in the game, in real life corals are actually colonies of sessile (immobile) animals.