It occurs in the lower littoral zone and the shallow sublittoral zone down to 40 meters ; it is frequently found in pools and caves, but not in positions where it would be exposed to the air at low tide.