Hermit crabs protect themselves by using empty seashells as a protective home. They retract into the shell when they feel threatened, keeping their soft abdomen safe from predators. Additionally, some hermit crabs have evolved to have a hard exoskeleton that provides extra protection.