The relation among the MgO-B2O3-SiO2 slag compositions and the efficiencies of extraction of B has been fitted and predicated by artificial neural network. The optimum composition corresponding to the highest efficiency of extraction of B was obtained using genetic algorithm. It is believed that the artificial neural network and genetic algorithm may provide a new and effective way for fitting and optimizing the process of extraction of B.