The invention provides a method for separating
magnesium and
lithium in brine, which comprises the following steps: pretreating the brine to prepare pretreated brine; carrying out primary
nanofiltration, secondary
nanofiltration and
reverse osmosis concentration on the pretreated brine; a
nanofiltration membrane selected by the first-stage nanofiltration is a carboxylated MOF (
Metal Organic Framework) modified nanofiltration membrane; the
carboxylation modified nanofiltration membrane is prepared from the following raw materials: a support body,
piperazine,
carboxylation ZiF-8 and
carboxylation Uio-66. According to the method, brine is pretreated, so that the risk of
pollution of the brine to a nanofiltration membrane is reduced, the pretreated brine is pumped into a nanofiltration
system, and trapped fluid enriched with
magnesium and
sulfate ions and high-
lithium permeate liquid are generated; the trapped fluid is subjected to secondary nanofiltration to recover
lithium, the secondary trapped fluid can be subjected to
resource utilization, the permeate liquid enters a
reverse osmosis membrane to concentrate the lithium content, and the concentrated lithium liquid enters a lithium
precipitation process;
magnesium and lithium are separated in the nanofiltration process, and meanwhile, the
impurity removal process of lithium
recovery is realized.