Major aspects related to lithium deposition in lithium-ion and lithium metal secondary batteries are reviewed. For lithium-ion batteries with carbonaceous anode, lithium deposition may occur under harsh charging conditions such as overcharging or charging at low temperatures. The major technical solutions include: (1) applying electrochemical models to predict the critical conditions for deposition initiation; (2) preventions by improved battery design and material modification; (3) applying adequate charging protocols to inhibit lithium deposition. For lithium metal secondary batteries, the lithium deposition is the inherent reaction during charging. The major technical solutions include: (1) the use of mechanistic models to elucidate and control dendrite initiation and growth; (2) engineering surface morphology of the lithium deposition to avoid dendrite formation via adjusting the composition and concentration of the electrolyte; (3) controlling battery working conditions. From a survey of the literature, the areas that require further study are proposed; e.g., refining the lithium deposition criteria, developing an effective AC self pre-heating method for low-temperature charging of lithium-ion batteries, and clarifying the role the solid electrolyte interphase (SEI) plays in determining the deposition morphology; to facilitate a refined control of the lithium deposition.