Magnesium content in formation and associated producible water has been defined for AO Komineft. A calcic method has been found useful for magnesium recovery from oilfield formation water and a new technology has been proposed for production of high-purity magnesium oxide from associated water for refractory applications.