Hermit crabs protect themselves by using empty shells as their homes, which they can retreat into for protection. They also have a hard exoskeleton that helps shield them from predators. Additionally, hermit crabs are known to be quite agile and can move quickly to evade threats.