He took an active part in the battle against the Qing dynast