Seagrasses and coral are often found close to each other, with seagrass growing on sand and coral on rock or rubble.