Metallic lithium anodes are highly promising for revolutionizing current rechargeable batteries because of their ultrahigh energy density. However, the application of lithium metal batteries is considerably impeded by lithium dendrite growth. Here, a biomacromolecule matrix obtained from the natural membrane of eggshell is introduced to control lithium growth and the mechanism is motivated by how living organisms regulate the orientation of inorganic crystals in biomineralization. Specifically, cryo-electron microscopy is utilized to probe the structure of lithium at the atomic level. The dendrites growing along the preferred < 111 > crystallographic orientation are greatly suppressed in the presence of the biomacromolecule. Furthermore, the naturally soluble chemical species in the biomacromolecules can participate in the formation of solid electrolyte interphase upon cycling, thus effectively homogenizing the lithium deposition. The lithium anodes employing bioinspired design exhibit enhanced cycling capability. This work sheds light on identifying substantial challenges in lithium anodes for developing advanced batteries.