Horizontal wells are increasingly being utilized in the exploration and development of oil and gas resources. However, the high temperature that occurs during drilling processes leads to a number of problems, such as the deterioration of drilling fluid properties and borehole instability. Therefore, the insight into heat transfer behaviors in horizontal wells is certainly advantageous. This study presents an integrated numerical model for predicting the temperature distribution during horizontal wells drilling considering the effects of drill pipe rotations, and hydraulic (i.e., circulating pressure losses) and mechanical frictions. A full implicit finite difference method was applied to solve this model. The results revealed that the mechanical frictions affect more on wellbore temperature variation than the effects of heat transfer intensification and circulating pressure losses; Moreover, the drilling fluid temperature was found higher than the stratum temperature at horizontal section, the temperature difference at the bottom hole reached up to 16 °C if pressure drops, heat transfer strengthened by rotations and mechanical frictions were all taken into account. This research could be utilized as a theoretical reference for predicting temperature distributions and estimating risks in horizontal wells drilling.