We study analytically the Schrödinger equation for a system made up of a quantum ring with a dipolar impurity under the effect an Aharonov-Bohm field and we choose the pseudoharmonic oscillator as a confinement potential. We calculate the exact values of the energies and we also get the exact expressions of the wave functions. We study the effects of the dipole moment of the impurity on the energies of the levels as well as on those of the transitions and this for different materials.