In order to study the mechanical failure characteristics and energy evolution law of gas-bearing coal–rock composites under different gas pressures, a uniaxial mechanical loading experiment was carried out on an upper-rock lower coal binary coal–rock assembly under different gas pressures. The changes in parameters such as compressive strength and elastic energy of the coal–rock combination were analyzed, and the energy transfer in the failure process of the gas-bearing coal–rock assemblage was studied. The results showed that the compressive strength of the combined body decreased linearly with the increase in gas pressure, and the decreasing rate of compressive strength was 6.4%, 16.3%, and 21.4%. The elastic modulus of the combined body decreased with the increase in gas pressure in a power function relationship. The energy accumulated before the peak of the rock part of the composite body and the elastic energy released after the peak, the energy accumulated before the peak of the composite body, and the energy dissipated after the peak of the coal body part all decreased with the increase in gas pressure. The variation range of the indicators K1 and K2, which reflect the influence degree of the partially accumulated elastic energy of the rock on the failure of the assemblage, were 5.85~6.68% and 7.34~9.46%, respectively.