In this work, 15 types of rare earth (Re) ions, including Y3+, La3+, Ce3+, Pr3+, Nd3+, Sm3+, Eu3+, Gd3+, Tb3+, Dy3+, Ho3+, Er3+, Tm3+, Yb3+ and Lu3+ doped perovskite SrTiO3 powders were synthesized by sol–gel method. The influence of Re ions doping on the crystal structure, morphology and optical property as well as the photocatalytic activity for the photodegradation of rhodamine B (RhB) was investigated in detail when the synthesized Re ions doped SrTiO3 powders were served as catalysts. The presented results revealed that the crystal structure is invariable, whereas the morphology and the optical bandgap are variable for the resultant SrTiO3 powders when different Re ions were incorporated into the SrTiO3 lattice. The relatedness between the morphology, optical property and photocatalytic activity of the synthesized SrTiO3 catalysts doped with variable Re ions were analyzed deeply, providing an insight into the influence factors on the photocatalytic activity of catalysts.