
From the way popular media portray Liu Bang, first emperor of the Han Dynasty, you'd think he was a mediocre military leader who relied on his excellent talent like Han Xin and Zhang Liang. But he wouldn't have defeated Xiang Yu, a Hannibal Barca-tier military genius, if he was.
Despite being a lowly butcher, he came to led a powerful anti-Qin army who's successes was nearly comparable to Xiang Yu.
Sure, he lost mulitiple battles against Xiang Yu but the fact that he survived fighting against a man who's basically the combination of Romance Lu Bu and Zhuge Liang terms of strength and military strategy multiple times is nothing short of impressive.
He basically acted as the anvil while Han Xin and Peng Yue were the hammer, in which Liu Bang maintained a steady defense in Guanzhong and kept the Ruler of Chu at bay inspite of ferocious attacks and setbacks while Han Xin and Peng Yue swept the north of China and took over the rest of Xiang Yu's lands and convinced some of his generals to side with the Han. He even gave military support and capable officers to the two (which makes their refusal to help him in the final battle and his eventual executions of the two of them understandable.)
By the time of the Battle of Gaixia where the combined forces of Liu Bang, Han Xin and Peng Yue surrounded the army of Chu, Xiang Yu may have won multiple battles against Liu Bang but he ultimately lost the war as his army lacked supplies and he was desperate enough to accept Liu Bang's fake offer to split China in two.