Trivalent rare earth erbium ion (Er
3+) doped titanium oxide (TiO
2) can possess a very wide range of applications due to its excellent optoelectronic properties, thus standing out among many rare-earth-doped luminescent crystals. However, the issues regarding local structure and electronic properties have not been finalized. To address these problems, the CALYPSO (Crystal structure AnaLYsis by Particle Swarm Optimization) method combined with the first-principles calculations is employed, and many converged structures of Er
3+-doped TiO
2are successfully obtained. Further structural optimization is performed by using the VASP (Vienna
ab initiosimulation package) software package, and we report for the first time that the lowest energy structure of Er
3+-doped TiO
2has the
$ P\overline 4 $
m2 symmetry. It can be observed that the doped Er
3+ions enter into the host crystal and occupy the positions of Ti
4+ions, resulting in structural distortion, which eventually leads the local Er
3+coordination site symmetry to reduce from
D
2dinto
C
2v. We speculate that there are two reasons: 1) the difference in charge between Er
3+ions and Ti
4+ions leads to charge compensation; 2) the difference between their electron radii is obvious: the radius is 0.0881 for Er
3+ion and 0.0881 for Ti
4+ion. In addition, during the structural search, we also find many metastable structures that may exist at a special temperature or pressure, which play an important role in the studying of structural evolution. When the electronic band structure of the Er
3+-doped TiO
2system is calculated, we adopt the method of local density approximation (LDA) combined with the on-site Coulomb repulsion parameter
Uto accurately describe the strongly correlated system. For the specific value of
U, we adopt 3.5 eV and 7.6 eV to describe the strong correlation of 3d electrons of Ti
4+ions and 4f electrons of Er
3+ions, respectively. According to the calculation of electronic properties, the band gap value of Er
3+doped TiO
2is about 2.27 eV, which is lower than that of the host crystal (
E
g= 2.40 eV). The results show that the reduction in the band gap is mainly caused by the f state of Er
3+ions. The doping of Er ion does reduce the band gap value, but it does not change the conductivity of the system, which have great application prospect in diode-pumped laser. These findings not only provide the data for further exploring the properties and applications of Er
3+:TiO
2crystals, but also present an approach to studying other rare-earth-doped crystalline materials.