Two-photon absorption spectrum of aniline is recorded using thermal lens effect with optical parametric oscillator as the pump source. Studies show that the two-photon absorption spectrum observed corresponds to 1A1 → 1B2 transition of aniline.