Coral and algae live together in a type of relationship called 
mutualism
. In this type of relationship, 
both organisms
will benefit. In this case, the algae 
get a habitat
, and the coral 
. Because the two organisms 
, they could both 
if the algae are ejected from the coral.