Can you have coral with tropical fish?

It's not recommended to place coral or any type of sea shells in a tropical fish tank. Doing so can increase the water's hardness, and may stress the fish. Not all fish like hard water. Plus, coral is a living thing, putting it in freshwater would kill it.