 After Heruo and Han captured Jiankang and the Chen emperor Chen Shubao, the Chen generals Xiao Huan (蕭瓛) and Xiao Yan (蕭巖) were holding out in modern Zhejiang.Yuwen was sent, along with Yan Rong (燕榮), to attack Xiao Huan and Xiao Yan, and he defeated Xiao Huan and forced Xiao Yan to surrender.After the completion of the campaign, in recognition of his contributions, Emperor Wen gave his son Yuwen Huaji a mid-level governmental post, while making Yuwen Shu himself the commandant at An Province (安州, roughly modern Xiaogan, Hubei).