Finally, in 1380, Hongwu had Hu and his entire family arrested and executed on charges of treason. Using this as an opportunity to purge his government, the emperor also ordered the execution of countless other officials, as well as their families, for associating with Hu.