For deep resource exploitation and engineering construction, the mechanical properties of soft and hard interbedded rock masses are important factors impacting engineering stability. Simultaneously, the influence of temperature on the strength of deep rock masses poses a significant obstacle to the exploitation of deep resources and the utilization of underground space. In this paper, the particle flow code (PFC2D) is utilized to establish the thermal-mechanical coupling numerical model of soft and hard interbedded rock masses, and then the uniaxial compression response of soft and hard interbedded rock masses following thermal damage is studied. The displacement and contact force produced by applying temperature, as well as the failure strength, strain, and crack development of the specimen after uniaxial compression is analyzed. The findings reveal that: 1) The peak displacement caused by applied temperature increases first and subsequently decreases with the increase of soft rock thickness ratio (Hs/H), whereas the peak displacement increases linearly with increasing temperature. The peak contact force varies in two stages with the increase of the soft rock thickness ratio (Hs/H), and with the same trends. 2) As the soft rock thickness ratio increases (Hs/H), the number of cracks decreases steadily. When the soft rock thickness ratio Hs/H < 0.5, the relationship curve between vertical strain and crack changes in two stages: the stage of crack development along with the stage of vertical strain gradually increases with crack development. When the thickness ratio of soft rock Hs/H > 0.5, the relationship curve changes in three stages: crack development stage, vertical strain increase stage, and vertical strain increase stage with crack development. 3) When the soft rock thickness ratio Hs/H < 0.5, the failure strength gradually decreases as soft rock thickness increases at T = 100°C, 200°C. The failure strength gradually increases as the soft rock thickness increases in general at T = 400°C. Soft rock thickness ratio Hs/H > 0.5, the failure strength increases with the increase of soft rock thickness at T = 300°C, 400°C. At T = 100°C, 200°C, the tendency of the failure strength changes less.