The Battle of Xiapi was fought between the forces of Lü Bu against the allied armies of Cao Cao and Liu Bei from the winter of 198 to 7 February 199 towards the end of the Eastern Han dynasty in China. The battle concluded with victory for Cao Cao and Liu Bei.