Hermit crabs rely on abandoned shells for protection as they grow. When a suitable shell washes ashore, crabs line up in order of size to exchange shells. A new arrival triggers a chain reaction, allowing crabs to swap shells. Ultimately, even a damaged shell is preferable to being homeless under the sun.