Hedgerow is a vital soil and water conservation technology for sloping farmland that can significantly reduce erosion and nutrient loss via their above- and below-ground parts. The effect of hedgerow on erosion and nutrient loss has been widely investigated, while the respective effects of their above- and below-ground parts are still unclear. Therefore, the purple soil from the Three Gorges Reservoir Area was used, and 3 slope conditions of control check, whole hedgerow and hedgerow roots only combined with 2 slope gradients (15° and 25°) were constructed and the simulated rainfall tests were researched at 3 rainfall intensities (60, 90 and 120 mm h−1). The runoff initiation time, runoff and erosion rates, and loss of nitrogen via runoff and sediment were analysed. In comparison to the control check slope condition, it was indicated that hedgerow increased the runoff initiation time by 43.38 %, decreased runoff and erosion by 15.59 % and 78.37 %, and decreased nitrogen loss via runoff by approximately 40 % and via sediment by approximately 70 % on average, respectively. The average contribution rates of the below-ground part of the hedgerow was 49.89 % for the increase in runoff initiation time, 33.99 % for runoff reduction, and 39.91 % for erosion reduction. In addition, more than 2/3 and 58.49 % of nitrogen loss reduction via runoff and sediment, respectively, was contributed by the above-ground part of the hedgerow. These results are beneficial for comprehending the control mechanism of hedgerow on soil erosion and nitrogen loss, thereby provide a scientific foundation for the sustainable and efficient utilization of soil and water resources on sloping farmland.