Inspired by the role of proteins in regulating eggshell mineralization, here Tao, Liu and colleagues apply trifluoroethanol modified eggshell membrane to combat lithium dendrite. Cryo-electron microscopy reveals that the growth along the most favored crystallographic direction is suppressed.