The performance and safety of lithium (Li)m etal batteries can be compromised owing to the formation of Li dendrites. Here, the use of ap olymer of intrinsic microporosity (PIM) is reporteda safeasible and robust interfacial layer that inhibits dendrite growth. The PIM demonstrates excellent film-forming ability,e lectrochemical stability,s trong adhesion to ac opper metal electrode, and outstanding mechanical flexibility so that it relieves the stress of structural changes produced by reversible lithiation. Importantly,t he porous structure of the PIM, which guides Li flux to obtain uniform deposition, and its strong mechanical strength combine to suppress dendrite growth. Hence, the electrochemical performance of the anode is significantly enhanced, promising excellentp erformance and extendedc ycle lifetime for Li metal batteries.Lithium (Li)b atteries have been proposed to meet the ever-increasingd emand for effective energy storage required for portable electronics and electric vehicles owing to their high energy density. [1] Considerable efforts have been devoted to improving the performance of Li batteries. Particularly,t he anode,w hich plays an important role in determining the overall performance of ab attery,h as attracted more research interest. Li metal is considered to be an exceptional anode material for the next generation of high energy density batteries,s uch