=Ab initio accurate all-electron relativistic molecular orbital Dirac-Fock self-consistent field calculations are reported for the linear symmetric XeF2 molecule at various intemuclear distances with our recently developed relativistic universal Gaussian basis set. The nonrelativistic limit Hartree-Fock calculations were also performed for XeF2 at various intemuclear distances. The relativistic correction to the electronic energy of XeF2 was calculated as --215 hartrees (-5850 eV) by using the Dirac-Fock method.The dominant magnetic part of the Breit interaction correction to the nonrelativistic intereledron Coulomb repulsion was included in our calculations by both the Dirac-Fock-Breit self-consistent field and perturbation methods. The calculated Breit correction is -6.5 hartrees (177 eV) for XeF2. The relativistic Dirac-Fock as well as the nonrelativistic HF wave functions predict XeF2 to be unbound, due to neglect of electron correlation effects. These effects were incorporated for XeF2 by using various ab initio post Hartree-Fock methods. The calculated dissociation energy obtained using the tm2(full) method with our extensive basis set of 313 primitive Gaussians that included d and f polarization functions on Xe and F is 2.77 eV, whereas the experimental dissociation energy is 2.78 eV. The calculated correlation energy is --2 hartrees (-54 eV) at the predicted intemuclear distance of 1.986 A, which is in excellent agreement with the experimental Xe-F distance of 1.979 8, in XeF2. In summary, electron correlation effects must be included in accurate ab initio calculations since it has