In aniline due to resonance, the lone pair of electrons on the N−atom
are delocalized over the benzene ring. Due to this, electron density on the nitrogen decreases. On the other hand, in CH3−NH2, +I
effect of CH3 increases the electron density on the N−atom.
Consequently, aniline is a weaker base than methylamine and hence its
pKb value is higher than that of methylamine.