To achieve in situ condition-preserved coring of the lunar surface and deep lunar rocks and a return mission, it is necessary to explore the mechanical properties and failure modes of simulated lunar rocks that have physical and mechanical properties approximately equivalent to those of mare basalt under simulated lunar temperature environments ([Formula: see text][Formula: see text]C to 200[Formula: see text]C). To this end, real-time uniaxial compression tests were conducted on simulated lunar rocks under corresponding in situ temperature conditions, and the mechanical properties, deformation characteristics, micromorphology, and failure modes were analyzed. Based on the macroscopic analysis, as the environmental temperature decreases, the uniaxial compressive strength, peak strain, and peak strain duration of simulated lunar rocks exhibit a nonlinear increasing trend, with maximum increases of 33.00[Formula: see text], 36.16[Formula: see text], and 49.25[Formula: see text] from those at room temperature, respectively. Based on microscopic analysis, the intergranular fractures run through the entire samples under the environmental temperature. As the environmental temperature increases, intergranular and transgranular fractures coexist, and layered fractures appear at high temperatures. At the same time, some samples exhibit undulating and stepped morphologies caused by shear stress. For the fractal dimension of a simulated lunar rock main fracture surface, the fractal dimension of the actual angle and the corrected angle increase first and then decrease with increasing environmental temperature, and the maximum error of the two is only 1.84[Formula: see text]. The overall fractal dimension ranges from 2.02 to 2.28, and the fractal dimension under real-time high-temperature conditions is higher than that under real-time low-temperature conditions. In addition, the failure mode of the simulated lunar rocks under real-time in situ temperature changes is a combined tensile–shear failure mode with shear failure (primary) and tensile failure (secondary). The above research results are expected to be applied to in situ condition-preserved coring in extreme lunar environments and provide a scientific basis for the design and development of in situ condition-preserved coring robot systems for the extreme environment of deep space.