The adsorption of common anions found in water can have a considerable impact on the surface state and optical characteristics of titanium dioxide (TiO2), which has an important impact on the photocatalytic nitrogen reduction reaction (NRR). This work utilizes density functional theory (DFT) computations to examine the electronic and optical characteristics of the TiO2 (001) surface under various anion adsorptions in order to clarify their influence on the photocatalytic NRR of TiO2. The modifications in the structure, optical, and electronic properties of TiO2 before and after anion adsorption are investigated. In addition, the routes of Gibbs free energy for the NRR are also evaluated. The results indicate that the adsorption of anions modifies the surface characteristics of TiO2 to a certain degree, hence impacting the separating and recombining charge carriers by affecting the energy gap of TiO2. More importantly, the adsorption of anions can increase the energy barriers for the NRR, thereby exerting a detrimental effect on its photocatalytic activity. These findings provide a valuable theoretical contribution to understanding the photocatalytic reaction process of TiO2 and its potential application of NRR in the actual complex water phase.