The lithium metal anode is one of the most attractive candidates for high-energy lithium rechargeable batteries because it has an ultrahigh theoretical specific capacity and the lowest electrode potential. Unfortunately, uncontrollable growth of dendritic Li leads to problems such as safety hazards and low cycling reversibility, which greatly hinder its commercial application. Here, a Li–Zn alloy layer is constructed in situ on Li metal foil by a simple chemical reaction of zinc trifluoromethanesulfonate with Li metal. The modified Li metal anode forms an interface with fast charge transfer kinetics and high chemical resistance to the electrolyte, which enables deposition of Li with a smooth, dense morphology without the growth of dendritic Li. In symmetrical cells, the Li metal anode with the Li–Zn alloy layer can reach a cycling lifetime of more than 500 h under a current density of 2 mA cm−2. This work provides a simple and effective strategy to suppress the formation of Li dendrites.