This paper presents the results of ab initio calculations of the equilibrium geometry, the electronic structure, and the spin and charge densities for neutral and negatively charged defects produced by the Mn and Cr impurities in the B position of the SrTiO 3 structure. It has been shown that, in both cases, the neutral defect is an acceptor center, while the singly charged defect is a donor center. It has been found that doubly charged defects are polar, have the symmetry C 4v , and reside in the ionic configurations 5 Mn 3+ + 3 Ti 3+ and 4 Cr 3+ + 3 Ti 3+ , respectively. In each case, there is a pair of almost energy degenerate electronic states ( 4 B 1 and 6 B 1 for Mn and 3 A 1 and 5 A 1 for Cr), which differ only in the direction of the spin of the electron polaron local ized at one of the neighboring titanium atoms. For the manganese impurity, the energy of the polar state 6 B 1 is only 0.174 eV lower than that of the state 6 A 1g (O h ) with the Mn 2+ ion in the high spin state. A new mech anism of dielectric relaxation in STO : Mn has been proposed.