The invention belongs to the technical field of batteries, and discloses a phosphate-based flame-retardant electrolyte and a lithium-metal battery, and the phosphate-based flame-retardant electrolyte consists of a lithium salt, a phosphate solvent and a diluent. According to the invention, dimethyl…