- Methylamine has a $–CH_3$ group, which donates electrons and increases the electron density on nitrogen, making it a stronger base.
- Aniline has a phenyl group ($–C_6H_5$), which withdraws electrons through resonance, reducing the electron density on nitrogen and making it a weaker base. Hence, the $pK_b$ of aniline is greater than that of methylamine.