Abstract:
The invention relates to a process for producing a lithium-containing solution from a lithium-containing raw-material solution, by: a) precipitating a first part of magnesium and calcium from the lithium-containing raw-material solution, b) extracting a second part of calcium and magnesium from the lithium-containing solution by liquid-liquid extraction, a resultant product being a lithium-containing solution. The invention also relates to equipment for producing a lithium-containing solution from a lithium-containing raw-material solution, including a precipitation unit to remove a first part of magnesium and calcium and an extraction unit to receive the lithium-containing raw-material solution and to remove therefrom a second part of calcium and magnesium by liquid-liquid extraction, and control unit to control the operation of the precipitation unit.

Description:
FIELD OF THE INVENTION 
       [0001]    The invention relates to a process and equipment for producing a lithium-containing solution from a lithium-containing raw-material solution. From the lithium-containing solution obtained as a product it is further possible to produce a pure lithium carbonate product. 
       BACKGROUND OF THE INVENTION 
       [0002]    A significant part of the world&#39;s lithium resources are found in natural brine sediments. Many of them contain large amounts of impurities, such as boron, magnesium and calcium as well as sulphate. In lithium recovery, the brine purifying techniques are currently based on selective precipitation of magnesium and calcium by means of sodium carbonate in such a way that the main part of the lithium will remain in the solution. The sodium carbonate is, however, a relatively expensive chemical and the sodium carbonate precipitation results in fairly high lithium losses (about 20%) as the lithium precipitates with alkaline earth metals. 
         [0003]    At present, lithium is most widely used in glass and ceramic industry and in accumulator and battery solutions. The need for lithium in the battery industry increases as the development of electric cars advances. In lithium applications the lithium carbonate is an important intermediate product. 
         [0004]    U.S. Pat. No. 5,219,550 discloses a process for producing a pure lithium carbonate. According to said publication, the starting material is a naturally occurring lithium-containing brine that is first concentrated by evaporation of water, either by heating or through solar energy, in pools. In the saline solution obtained after evaporation, magnesium and calcium are present as chlorides, as is lithium. In concentration, the presence of sulphates is to be avoided, but if they occur, they may be removed, for instance, by adding a calcium compound to precipitate the sulphate as gypsum. For removal of boron, it is advantageous that it is present as boric acid, and therefore to the saline solution may be added hydrochloric acid, for instance. Boron is separated from the saline solution by extracting it by means of a fatty alcohol. The boron-free saline solution is subjected to removal of magnesium and calcium by precipitation and solid-liquid separation. Lithium is separated from the brine by precipitating it as lithium carbonate using sodium carbonate. 
         [0005]    U.S. Pat. No. 5,993,759 discloses a process for producing lithium carbonate from brine. The brine is first treated with a hydrochloric acid solution, for instance, whereby some of the boron reacts to a boric acid. The remaining boron is recovered from the solution by extraction. Next, magnesium and calcium are removed from the saline solution. Prior to removal of magnesium and calcium the solution is diluted such that the lithium content will be just 0.1 to 0.3% by weight, which prevents precipitation of large amounts of lithium in connection with magnesium precipitation. Magnesium is precipitated from the diluted saline solution in two stages, in the first stage using sodium carbonate and in the second stage using calcium hydroxide and sodium carbonate. In the second stage of magnesium removal also the calcium in the saline solution precipitates as calcium carbonate from the solution. After removal of impurities, the lithium is precipitated as lithium carbonate from the saline solution using sodium carbonate, a typical yield from recovery being about 80 to 90%. 
         [0006]    In the article by Bukowsky, H. et al., “The separation of calcium and magnesium from lithium chloride by liquid-liquid extraction with di(2-ethylhexyl) phosphoric acid”, Hydrometallurgy, 28 (1992), pages 323-329, there is described separation of calcium and magnesium from a lithium chloride solution. According to the article, calcium and magnesium are well separable from a lithium chloride solution by using 0.5 M D2EHPA as extractant in a two-stage extraction. The same is also stated in DD patent publication 294284 (1991). 
       OBJECT OF THE INVENTION 
       [0007]    The object of the invention is to provide a more economical process than before for recovering lithium from lithium-containing raw-material solutions, such as naturally occurring brines. By means of the process it is possible to reduce co-precipitation of lithium and thereby lithium losses, which appear in prior art processes, in particular, in connection with precipitation of calcium and magnesium. By means of the process of the invention it is also possible to eliminate the need for diluting process solutions, which would increase the size of process equipment and thereby the investment costs. 
       SUMMARY OF THE INVENTION 
       [0008]    The present invention relates to a process for producing a lithium-containing solution from a lithium-containing raw-material solution, the process comprising the following steps: 
         [0009]    a) precipitation step, in which a first part of magnesium and calcium is removed from the lithium-containing raw-material solution by precipitation, 
         [0010]    b) extraction step, in which a second part of calcium and magnesium is removed from the lithium-containing solution obtained from the precipitation step by liquid-liquid extraction, a resultant product being a lithium-containing solution. 
         [0011]    According to an embodiment of the invention, the lithium-containing raw-material solution is a brine solution available, for instance, from natural reserves, typically from naturally occurring brines. A natural brine solution, interesting with respect to lithium, typically contains lithium more than 15 g/l. A good-quality deposit contains dissolved lithium up to 40 g/l. The main anion in the brine is a chloride. Sulphate may also occur. Of other dissolved metals, the most frequent impurities are magnesium and calcium. Boron content may also exceed 5 g/l, and consequently removal of boron is necessary for separating a pure lithium product. 
         [0012]    According to an embodiment of the invention, removal of a first part of magnesium and calcium from the raw-material solution is performed by precipitation. According to an embodiment of the invention, in the precipitation step, sodium carbonate is used as a precipitant. In addition, in the precipitation it is possible to use calcium hydroxide, whereby sulphate can be separated into a solid matter as gypsum. Typically, magnesium and calcium mainly precipitate as carbonates, but sulphate and hydroxide deposits of metals may also be present. 
         [0013]    According to an embodiment of the invention, the first part of calcium and magnesium removed from the solution in the precipitation step represents 50 to 95% by weight of the total amount of calcium and magnesium in the total raw-material solution. 
         [0014]    According to an embodiment of the invention, the calcium and magnesium precipitation step is continued until 50 to 95% by weight of the total amount of calcium and magnesium will be precipitated and removed from the solution. 
         [0015]    According to an embodiment of the invention, the process comprises assaying the composition of a lithium-containing raw-material solution prior to precipitation, or the composition of a feed into precipitation, or the composition of a solution in precipitation, 
         [0016]    determining, on the basis of said composition, the amount of a precipitant that removes from the raw-material solution said predetermined first part of magnesium and calcium, and 
         [0017]    dispensing said determined amount of precipitant into a precipitation unit. 
         [0018]    According to an embodiment of the invention, compositions of the precipitation-stage solution are measured during the precipitation process, and the precipitation process is discontinued and the solution is conveyed to a next process step, when the composition of the solution achieves a set value. 
         [0019]    According to an embodiment of the invention, when the composition of the solution is assayed, an analysis method is used for assaying one or more ion contents in a solution, selected from the following: Ca, Mg, Li, SO 4 , Cl, OH, and on the basis of the obtained result, it will be decided which precipitant or precipitants to use and how much. According to an embodiment of the invention, when the composition of a solution is assayed, a calcium ion, magnesium ion or lithium ion content is assayed. According to an embodiment of the invention, the total content of calcium ion and magnesium ion is assayed. 
         [0020]    According to an embodiment of the invention, the raw-material solution is assayed for the total content of calcium and magnesium in the solution, and on the basis thereof is determined the amount of a precipitant or precipitants to be fed into the precipitation step in such a way that a first part, i.e. 50 to 95% by weight, of the calcium and magnesium present in the raw-material solution is precipitated. Typically, the precipitant used is sodium carbonate, additionally calcium hydroxide may be used. Thus, according to an embodiment of the invention, the progress of the precipitation step is adjusted in such a way that on the basis of the Ca and Mg contents, assayed from the raw-material solution, and the desired precipitation degree, which is typically within the range of 50 to 95% by weight of the amounts contained in the raw-material solution, there is determined the necessary amount of sodium carbonate. 
         [0021]    According to an embodiment of the invention, at the beginning of the precipitation step, the magnesium and calcium content of the solution may be assayed by any known assay method. The assay may be repeated sufficiently frequently during the precipitation step. When the magnesium and calcium concentrations go below a predetermined set value, the precipitation process is terminated and the solution obtained from the precipitation step, separated from solid matter, is conducted to a next process step. The set value of magnesium and calcium, on the basis of which the precipitation step is terminated, may be 50 to 95% by weight lower than the Mg and Ca concentrations at the beginning of the precipitation step. 
         [0022]    According to an embodiment of the invention, the precipitation step may be performed in two stages, whereby in the first stage there is added calcium hydroxide, precipitating gypsum, and in the second stage there is added sodium carbonate for precipitating magnesium and calcium, and consequently, in the solution there will be a set value amount of magnesium and calcium and the lithium will remain in the solution. 
         [0023]    According to an embodiment of the invention, the development of the lithium content in the solution of the precipitation step is measured during the precipitation step. If the lithium content drops more than 10% by weight with respect to the initial situation, precipitation is interrupted to stop the lithium precipitation and the process solution is conveyed to a next process step. The lithium content may be followed and monitored by known assay methods and process control devices. 
         [0024]    According to an embodiment of the invention, the second part. i.e. the rest, of the calcium and magnesium the raw-material solution initially contained, is 5 to 50% by weight of the total amount of calcium and magnesium in the entire raw-material solution. 
         [0025]    According to an embodiment of the invention, the precipitation step is performed to precipitate calcium and magnesium 50 to 95% by weight of the total amount of calcium and magnesium contained in the raw-material solution, and at the same time, to precipitate lithium at most 10% by weight of the lithium contained in the raw-material solution. 
         [0026]    According to an embodiment of the invention, the calcium and magnesium precipitation step is continued until 10% by weight, at most, of the lithium in the raw-material solution will be precipitated along with the precipitation of the first part of calcium and magnesium. 
         [0027]    According to an embodiment of the invention, the solution obtained from the precipitation step is subjected to an extraction step, in which the second part of magnesium and calcium is removed from the solution by selective liquid-liquid extraction. In the liquid-liquid extraction there is selected an extractant that does not separate lithium from an aqueous solution feed into an organic phase. After the extraction step, magnesium and calcium concentrations in the aqueous phase are typically less than 0.01 g/l. 
         [0028]    According to an embodiment of the invention, the extraction step employs an organic extractant. According to an embodiment of the invention, the extraction step employs a calcium and magnesium selective extractant, which contains e.g. dialkyl phosphoric acid, such as di-2-ethyl hexyl phosphoric acid, or dialkyl phosphonic acid, or dialkyl phosphinic acid, or a mixture thereof. 
         [0029]    The extraction step may include a stripping step of calcium and magnesium, and a hydrochloric-acid-containing aqueous solution is used as a stripping solution, whereby the hydrochloric-acid-containing aqueous solution containing calcium and magnesium, obtained after the stripping step, may be conveyed back to an earlier process step. 
         [0030]    According to an embodiment of the invention, the process comprises, in addition to the precipitation step and the extraction step, at least one pre-treatment step of lithium-containing raw-material solution prior to the precipitation step, which pre-treatment step is selected from the group of evaporation of the lithium-containing raw-material solution, dissolution of carbonates, typically magnesium and calcium carbonates, of the raw-material solution in a lithium-containing raw-material solution, or removal of boron from a lithium-containing raw-material solution. When the lithium-containing raw-material solution is pre-treated, there is typically obtained a feed into the precipitation step. 
         [0031]    According to an embodiment of the invention, from the lithium-containing solution obtained as a product by the process lithium carbonate is precipitated by means of sodium carbonate. The obtained lithium carbonate precipitate is recovered and it is extremely pure and typically contains more than 99% by weight lithium carbonate. 
         [0032]    According to an embodiment of the invention, in the process, at most 10% by weight of the lithium in the raw-material solution co-precipitates with the first part of magnesium and calcium. 
         [0033]    A feature of the invention is equipment for producing a lithium-containing solution from a lithium-containing raw-material solution, the equipment comprising: 
         [0034]    a precipitation unit arranged to remove a predetermined first part of magnesium and calcium from a lithium-containing raw-material solution by precipitating them, 
         [0035]    an extraction unit arranged to receive from the precipitation unit the lithium-containing raw-material solution and to remove therefrom a second part of calcium and magnesium by liquid-liquid extraction obtaining a lithium-containing solution as a product, and 
         [0036]    control means for controlling the operation of the precipitation unit to remove from the lithium-containing raw-material solution said predetermined first part of magnesium and calcium. 
         [0037]    According to an embodiment of the invention, a control unit is arranged 
         [0038]    to assay the composition of the lithium-containing raw-material solution prior to precipitation, or the composition of a feed into the precipitation unit, or the composition of the solution in the precipitation unit, 
         [0039]    to determine, on the basis of said composition, the amount of a precipitant that removes from the raw-material solution said predetermined first part of magnesium and calcium, and 
         [0040]    to dispense said determined amount of precipitant into the precipitation unit. 
         [0041]    In the equipment according to an embodiment of the invention, the precipitation unit comprises one or more successive precipitation reactors, and the extraction unit comprises a liquid-liquid extraction unit. 
     
    
     
       LIST OF FIGURES 
         [0042]      FIG. 1  shows schematically an exemplary embodiment of the process according to the invention. 
           [0043]      FIG. 2  shows schematically a second exemplary embodiment of the process according to the invention. 
           [0044]      FIG. 3  is a simplified schematic view of equipment in an exemplary embodiment of the invention, by which a precipitation step  3  and an extraction step  4  may be implemented. 
           [0045]      FIG. 4  is a flow chart that illustrates a control procedure of an exemplary embodiment of the invention. 
       
    
    
     DETAILED DESCRIPTION 
       [0046]    In accordance with the prior art, when pure lithium carbonate is produced from brine, it is typical of the processes that boron is first removed from the solution and thereafter calcium and magnesium. Liquid-liquid extraction is a typical manner to remove boron from the solution. Calcium and magnesium are often removed by carbonate precipitation. Removal of calcium and magnesium may also be carried out by extraction. Prior art publications also reveal that a lithium salt is readily precipitated in connection with magnesium and calcium precipitation. This deteriorates lithium yield in an end product and increases a need for recycling in the processes. In prior art solutions, in order to prevent co-precipitation of lithium the brine solution has been considerably diluted, for instance, and yet the lithium yield has only been about 80 to 90% by weight. Dilution also increases the size of process equipment, and consequently the investment and operating costs also increase. 
         [0047]    The now invented process is based on performing the removal of calcium and magnesium from a lithium-containing raw-material solution in two stages so as to ensure the highest possible yield and purity of lithium. In the process of the invention, a first part of the calcium and magnesium contained in the lithium-containing raw-material solution is removed by carbonate precipitation, and the precipitation uses sodium carbonate and as an additive it is possible to use calcium hydroxide. In the precipitation step of the process according to the invention, the lithium-containing raw-material solution is contacted with sodium carbonate and possibly with calcium hydroxide so as to provide a precipitate. The obtained precipitate is a mixed precipitate which mainly contains carbonates, and depending on the additives used and components contained in the feed, also sulphates and hydroxides. It is possible to carry out carbonate precipitation without using calcium hydroxide as an aid, when the feed does not contain sulphates. The first part of calcium and magnesium comprises the majority of their amount in the raw-material solution, preferably 50 to 95% by weight of their total amount in the raw-material solution. Surprisingly, it was found that when these metals are not precipitated completely, but 50 to 95% by weight of the total amount of calcium and magnesium contained in the raw-material solution is precipitated, lithium is co-precipitated for at most 10% by weight of the lithium contained in the raw-material solution. The precipitation step is continued until the first part, i.e. 50 to 95% by weight, of the calcium and magnesium contained in the raw-material solution is precipitated. When the precipitation of magnesium and calcium is not brought to completion, savings are also achieved in the amount of costly precipitants. 
         [0048]    The composition of the raw-material solution is determined by assaying the content of one or more ions in the raw-material solution, the ion/ions being selected from among the following: calcium, magnesium, lithium, sulphate, chloride and hydroxide. On the basis of the composition it is determined which precipitant or precipitants to use and how much. 
         [0049]    Typically, the raw-material solution is assayed for the calcium and magnesium content, and on the basis of it and the desired precipitation degree, which is within the range of 50 to 95% by weight of the total calcium and magnesium content in the raw-material solution, there is determined the necessary amount of the precipitant or precipitants. 
         [0050]    The second part, i.e. the rest of the calcium and magnesium, is separated from the raw-material solution by extraction, which is primarily a so-called polishing of the solution. In the process, the extraction step is carried out by contacting the lithium-containing solution, from which the first part of magnesium and calcium is removed, with the extractant, whereby the remaining magnesium and calcium in the solution are transferred to the extractant. The second part, i.e. the rest of the calcium and magnesium to be removed, comprises 5 to 50% by weight of the magnesium and calcium initially contained in the raw-material solution. The obtained product will be a lithium-containing solution that contains at least 90% by weight of the lithium contained in the raw-material solution. The lithium may be recovered from the product solution at very high yield through precipitation as lithium carbonate. By precipitating lithium carbonate from the lithium-containing product solution, the obtained product will be lithium carbonate of at least technical grade. The lithium-containing product solution typically contains a small amount of calcium and magnesium, the presence of which cannot be avoided. Typically, they remain in the product solution for about 0.01 g/l. 
         [0051]    In the following, the invention is described in greater detail by means of  FIG. 1 . According to an embodiment of the invention, the lithium-containing raw-material solution is fed into a magnesium and calcium precipitation step  3 , where a first part of the Mg and Ca in the solution is removed by precipitating them from the solution. In the precipitation, sodium carbonate is used, and in addition to the conventional sodium carbonate, it is also possible to use, as an aid, calcium hydroxide which is less expensive. In that case, precipitation mainly occurs by means of sodium carbonate, and calcium hydroxide is used for raising pH. The calcium hydroxide also precipitates, to some extent, calcium and magnesium. In the first step is removed most of the calcium and magnesium in the raw-material solution, the amount being about 50 to 95% by weight of the total calcium and magnesium in the solution. Typically, the amount of the precipitant and precipitants used is decided on the basis of the Ca and Mg content of the raw-material solution to the effect that the amount of the precipitant or precipitants used is such that 50 to 95% by weight of the calcium and magnesium contained in the raw-material solution will precipitate. The obtained mixed precipitate, i.e. Mg—Ca-hydroxide-sulphate-carbonate precipitate, is removed from the solution and the lithium-containing raw-material solution is conveyed to removal of the second part of calcium and magnesium. The mixed precipitate formed in the precipitation step mainly contains carbonates. Sulphates and hydroxides are present less or not at all in the mixed precipitate. 
         [0052]    The precipitation step  3  is carried out in any equipment suitable for the purpose. Typically, the precipitation step  3  is carried out by using two reaction vessels. 
         [0053]    The removal of the second part of calcium and magnesium from the lithium-containing raw-material solution takes place in the extraction step  4 , in which the rest of the calcium and magnesium is removed by liquid-liquid extraction. The second part, i.e. the rest of the calcium and magnesium, comprises 5 to 50% by weight of the magnesium and calcium contained in the raw-material solution. The pH of the raw-material solution is adjusted appropriate, typically to pH value of 3 to 6, by means of soda ash feed, i.e. sodium carbonate feed. As an extractant there is used any calcium and magnesium selective extractant, whereby the calcium and magnesium are extracted in the extractant and the lithium to be recovered later will remain in the lithium-containing product solution. Thus is obtained a lithium-containing product solution, wherefrom lithium may be recovered at very high yield. Calcium and magnesium may be returned in an acidic stream to the beginning of the process, typically, for instance, to dissolution of carbonates prior to removal of boron. 
         [0054]    The organic extractant is selected to be one that does not extract lithium. Typically, the extractant contains dialkyl phosphoric acid, e.g. D2EHPA, i.e. di-2-ethyl hexyl phosphoric acid, dialkyl phosphonic acid or dialkyl phosphinic acid or any mixture thereof. Examples of commercially available extractants include D2EHPA, lonquest 801 and Cyanex 272. 
         [0055]    The extraction step is carried out as liquid-liquid extraction in any equipment suitable for the purpose. In the extraction step, magnesium and calcium are transferred into the extractant as bivalent ions. Typically, the extraction step includes stripping of an organic solvent or an organic phase. In stripping, calcium and magnesium are extracted in a stripping solution to obtain chloride salts. To serve as the aqueous solution of stripping it is preferable to select a hydrochloric acid-containing aqueous solution, which may be conveyed, after stripping, for instance to an earlier process step, such as a pretreatment of the lithium-containing raw-material solution, typically to the carbonate dissolution step. 
         [0056]    Pre-treatment steps may be performed on the lithium-containing raw-material solution, depending on the composition of the lithium-containing raw-material solution to be treated, for instance, evaporation, dissolution of carbonates and/or removal of boron, depending on the components contained in the lithium-containing raw-material solution. Of the pre-treatment steps, it is possible to perform all or just one or some of them. The invention is further described by means of the schematic view of  FIG. 2 .  FIG. 2  shows an exemplary embodiment of the invention, and according thereto, the lithium-containing raw-material solution may be subjected to pre-treatments. The lithium-containing raw-material solution may be first evaporated in evaporation pools (not shown in  FIG. 2 ), and thereafter the carbonate compounds contained in the raw-material solution may be dissolved and the boron removed. The lithium-containing raw-material solution, which is brine, for instance, is conveyed to a carbonate dissolution step  1 . It is possible to convey to the dissolution step a hydrochloric acid containing aqueous solution from a subsequent process step, which aqueous solution also contains calcium and magnesium. By means of the hydrochloric acid solution to be fed into the raw-material solution are dissolved the carbonates, typically Mg and Ca carbonates, of the raw-material solution, and they form chloride compounds. This process step is performed in acidic conditions. 
         [0057]    After the dissolution of carbonates, the lithium-containing raw-material solution is subjected to removal of boron  2 , which in accordance with the diagram is performed by liquid-liquid extraction using a boron-selective extractant known per se, typically a diol compound. To the boron removal step there is also fed sodium hydroxide, whereby the boron is recovered from the extractant in the stripping step. 
         [0058]    Next, the boron-depleted, lithium-containing raw-material solution is conveyed to a magnesium and calcium precipitation step  3 , which is performed in the same manner as that described in connection with  FIG. 1 . 
         [0059]    From the calcium and magnesium precipitation step  3  the lithium-containing raw-material solution is conveyed to an extraction step  4 , which is implemented as described in connection with  FIG. 1 . 
         [0060]    By means of the extraction step  4  Ca and Mg may be removed from the raw-material solution so completely that, when the lithium-containing solution is fed from step  4  into the lithium precipitation step  5 , a pure lithium carbonate product may be precipitated using sodium carbonate as a precipitation aid. The calcium-magnesium extraction uses as a stripping solution a hydrochloric acid-containing solution, which is conveyed, after stripping, to the pre-treatment step of the lithium-containing raw-material solution, to the dissolution of carbonates  1 . The residual lithium-depleted solution from the lithium precipitation may be conveyed, for instance, back to evaporation pools of lithium brines in order to enable recovery of the residual lithium in the solution. 
         [0061]    As stated above, the precipitation step  3  may be carried out in any equipment suitable for the purpose. Correspondingly, the extraction step  4  may be carried out as liquid-liquid extraction in any equipment suitable for the purpose.  FIG. 3  shows, by way of example, simplified equipment wherewith steps  3  and  4  may be implemented. A control system for the precipitation equipment  3  and the extraction equipment  4  is illustrated by a control station  35 . The control station  35  may be, for instance, a process control system or a control room computer. The flow chart of  FIG. 4  gives an example of a control procedure of the control system. The control process may be fully automated or semi-automated. In a semi-automated control process some of the control steps, particularly starting and ending of the precipitation step and the extraction step, may be performed manually through the control station by the operator. 
         [0062]    Examples of commercially available reactors, applicable for use as a precipitation reactor unit  31 , include OKTOP® reactors manufactured by Outotec. A precipitation reactor unit  31  may comprise two or more consecutive OKTOP® reactors, whereby precipitation is carried out in two or more stages. “Incomplete” precipitation in accordance with the exemplary embodiments of the invention may be implemented in various ways, one of which is given as an example in  FIG. 4 . In the example a lithium-containing raw-material solution is fed into the reactor unit  31  (step  42  in  FIG. 4 ). 
         [0063]    The composition of the raw-material solution prior to precipitation is measured with suitable concentration measurement equipment. In the example of  FIG. 3 , the raw-material solution to be fed into the precipitation reactor unit  31  passes through a measuring and sampling unit  33  that samples the solution, and the samples are conveyed to an analyzer  34  on a sampling line for analysis, for instance. The analyzer  34  provides measuring data or a measuring signal representing concentration (result of analysis), which is conveyed to the control station  35  (step  44  in  FIG. 4 ). When the concentrations in the raw-material solution are known, the amount of precipitant, in other words, the amount of sodium carbonate Na 2 CO 3  and optionally calcium hydroxide Ca(OH) 2  required for Mg/Ca precipitation, is calculated. The amount of the precipitant is adjusted at the control station  35  to be computationally such that a desired proportion of Ca and Mg contents will precipitate to solid matter. The control station  35  may control a dispenser  32  to dispense the desired precipitant quantity into the precipitation reactor unit  31  (step  46  in  FIG. 4 ). In an alternative example, a small amount of the raw-material solution present in the precipitation reactor unit  31  may be recycled via a measuring and sampling unit  33 ′, which samples the solution and the samples are conveyed to the analyzer  34  on the sampling line for analysis, for instance. In that case the measuring and sampling unit  33  of the first example may be omitted. 
         [0064]    When the precipitation process is started (step  47  in  FIG. 4 ), the raw-material solution and sodium carbonate Na 2 CO 3 , and optionally calcium hydroxide Ca(OH) 2 , fed into the reactor unit  31 , are mixed mechanically in the reactor unit  31  and they react forming a Ca and/or Mg precipitate. 
         [0065]    Mixing is continued until a desired precipitation degree is achieved (step  48  in  FIG. 4 ). In the exemplary embodiment of the invention, in step  48 , mixing takes place for a given period of time, during which the desired precipitation is known to occur. The precipitation ends, when the dispensed amount of precipitant is used up, which determines the minimum mixing time. Alternatively or additionally, it is possible to determine the degree of precipitation by measurement, for instance, by means of the measuring unit  33 ′ and the analyzer  34 . In that case accurate dispensing of the precipitant is not necessarily needed. When deemed that the desired precipitation degree is achieved (e.g. on the basis of the precipitation time and/or measurement of composition), the control station  35  may convey a control signal or control signals which stop the precipitation step, transfer the solution to the extraction equipment  4  and start the Ca/Mg extraction process (step  50  in  FIG. 4 ). The control station  35  may, for instance, open a valve in the reactor unit and/or start a pump for transferring the solution onwards. An example of a suitable analyzer, which may be used for implementing an analyzer unit, is Outotec Courier® 5 SL on-line analyzer manufactured by Outotec. After the reactor unit  31 , the solution may be transferred to the extraction equipment  4  via a filter which filters out Ca/Mg precipitate. 
         [0066]    An exemplary embodiment of the invention employs two consecutive reactors, one of which (preferably the first) is used for precipitating primarily magnesium Mg and the other (preferably the latter) is used for precipitating primarily calcium Ca. In that case calcium hydroxide Ca(OH) 2  alone may be fed into the first reactor and sodium carbonate Na 2 CO 3  alone may be fed into the latter one. 
         [0067]    In the example of  FIG. 3 , the extraction step  4  is performed as liquid-liquid extraction in equipment including a pump  36 , mixers  37  and  38  and a settler  39 . An example of suitable mixer-settler equipment is the one based on Outotec VSF® (Vertical Smooth Flow) SX technology. A dispersion overflow pump  36  is used for providing a dispersion flow for the solution that is received from the precipitation equipment  3 . Examples of suitable mixers  37  and  38  are SPIROK mixers by Outotec. To the mixers are also fed sodium carbonate Na 2 CO 3  and hydrochloric acid HCl. The mixers  37  and  38  are used for maintaining the dispersion coherent and for allowing time for the mass transfer reaction to occur. Finally the dispersion is fed into a settling pool  39 , where the dispersion formed in the mixer is separated through differences in density into a Ca/Mg precipitate and a lithium carbonate Li 2 CO 3  slurry. 
       Example 
       [0068]    There is provided a lithium-containing raw-material solution that contains 1 g lithium, 7 g boron and totally 10 g calcium and magnesium. From the lithium-containing raw-material solution is removed the boron by liquid-liquid extraction. After the liquid-liquid extraction the lithium-containing raw-material solution contains boron less than 0.01 g. Thereafter, from the boron-depleted lithium-containing raw-material solution is removed calcium and magnesium through precipitation by adding calcium hydroxide and sodium carbonate to the solution, whereby the total content of magnesium and calcium dropped to less than 50% compared to the raw-material solution. After precipitation, the solution contains calcium and magnesium 4 g in total. After precipitation from the lithium-containing solution is removed the rest of magnesium and calcium by liquid-liquid extraction using di-2-ethyl hexyl phosphoric acid. There is obtained a lithium-containing product solution which contains 0.92 g lithium and whose total amount of calcium and magnesium is 0.01 g. 
         [0069]    It will be apparent to a person skilled in the art that as technology advances, the basic idea of the invention may be implemented in many different ways. The invention and its embodiments are thus not restricted to the examples described above but may vary within the scope of the claims.