The mucus layer keeps clownfish safe from anemone stings. This lets them swim around freely and stay safe in their anemone home.