The title compound, C16H20N4, was synthesized by cyanation of bromhexine. The compound crystallizes with two unique molecules in the asymmetric unit. The substituted aniline and cyclohexane rings are inclined to one another by 37.26 (6)° in one molecule and by 22.84 (7)° in the other. In the crystal packing, intra- and intermolecular N—H...N hydrogen bonds and an intermolecular C—H...N contact were observed.