In this work the behaviors of orthorhombic CdSnN2 were computationally investigated under uniaxial compressions based on density function theory (DFT) calculations. The electronic and optical properties were corrected using a recently developed DFT‐1/2 scheme. When the compression was applied in [100] direction, a phase transition was observed from Pna21 to Pnma phase when the compression is larger than 30 GPa, while no phase change was observed for uniaxial compressions along [010] and [001] directions. For the former one, the band gap first increases until a maximum is arrived at 20 GPa with a value of 0.994 eV, followed with a reduction upon the critical pressure and nearly a constant after 30 GPa. When the compression is along [010] direction, the band gap nearly remains round 0.620 eV. In addition, the band gap shows a small increase and then shrinks monotonically in the investigated pressure range along with increasing compression in [001] direction. As for the mechanical properties, when the compression is along [100] direction, the bulk modulus nearly increases monotonically except for the transit region from 20 GPa to 29 GPa, and the shear modulus decreases upon to 29 GPa and then increases for the Pnma phase. When the compression is along [010] direction, the bulk modulus increases with a maximal around 25 GPa and then decreases, while the shear modulus monotonically decreases. With compression in [001] direction, the bulk modulus monotonically increases and the shear modulus decreases within the investigated pressure range. The absorption was also calculated and discussed. The anisotropic behaviors of CdSnN2 under uniaxial compressions may hence indicate some potential applications.This article is protected by copyright. All rights reserved.