In 207, Yellow Turban rebels in Jinan (濟南; near present-day Zhangqiu, Shandong) and Le'an (樂安; in present-day Shandong), led by Xu He () and Sima Ju (), attacked cities and killed officials. Xiahou Yuan led military forces from Taishan (泰山; near Mount Tai), Qi and Pingyuan commanderies to attack the rebels. He defeated them, killed Xu He, and pacified the various counties in the region. He also collected the enemy's food supplies and distributed them among his own troops.