In this study we modelled the influence of the spatially and temporally heterogeneous snow cover on the surface energy balance and thus on rock temperatures in two rugged, steep rock walls on the Gemsstock ridge in the central Swiss Alps. The heterogeneous snow depth distribution in the rock walls was introduced to the distributed, process-based energy balance model Alpine3D with a precipitation scaling method based on snow depth data measured by terrestrial laser scanning. The influence of the snow cover on rock temperatures was investigated by comparing a snow-covered model scenario (precipitation input provided by precipitation scaling) with a snow-free (zero precipitation input) one. Model uncertainties are discussed and evaluated at both the point and spatial scales against 22 near-surface rock temperature measurements and high-resolution snow depth data from winter terrestrial laser scans. In the rough rock walls, the heterogeneously distributed snow cover was moderately well reproduced by Alpine3D with mean absolute errors ranging between 0.31 and 0.81 m. However, snow cover duration was reproduced well and, consequently, near-surface rock temperatures were modelled convincingly. Uncertainties in rock temperature modelling were found to be around 1.6 degrees C. Errors in snow cover modelling and hence in rock temperature simulations are explained by inadequate snow settlement due to linear precipitation scaling, missing lateral heat fluxes in the rock, and by errors caused by interpolation of shortwave radiation, wind and air temperature into the rock walls. Mean annual near-surface rock temperature increases were both measured and modelled in the steep rock walls as a consequence of a thick, long-lasting snow cover. Rock temperatures were 1.3-2.5 degrees C higher in the shaded and sunny rock walls, while comparing snow-covered to snow-free simulations. This helps to assess the potential error made in ground temperature modelling when neglecting snow in steep bedrock.