In this work, the electronic, optical, and mechanical properties of BN, AlN, and InN under the action of pressure are calculated. For each of these compounds, the energy band structure, band gaps (EgL, EgΓ,EgX), refractive index (n), dielectric constants (ε∞ , ε0), elastic constants (C11, C12,C44), and relevant parameters such as bulk (Bu), shear (Sh), and Young's (Y0) moduli are studied, and other important parameters such as bond-stretching (α), bond-bending (β) force constant, internal-strain parameter (ζ), effective charges (eT*, Z*), anisotropy factor (Is), Poisson's ratio (Po), Cauchy ratio (Ca), the ductility index (μD), and linear compressibility (C0) are also calculated. The effects of pressure on all studied properties are investigated. Our results are in good agreement with the available experimental and theoretical data for BN, AlN, and InN.