When
Liu Bang led his rebel group to Chenliu, he asked his men if they knew of any talents living in the area. At the time, one of Liu Bang's horsemen was the son of Li Yiji's neighbour, and he dropped by to visit Gaoyang. Li Yiji met the horseman and told him, The horseman replied, "The Duke of Pei dislikes (
Confucian) scholars. When they visit him, he takes off their hats and urinates in them. He also yells at them. If you want to visit him, you can't say that you are a scholar." Li Yiji insisted that the horseman tell Liu Bang exactly what he had said, so the horseman did. Liu Bang later came to Gaoyang and summoned Li Yiji to meet him at the local guesthouse. When Li Yiji showed up, he saw Liu Bang sitting on a bed and having his feet washed by two maids, so he did not kneel before Liu Bang and instead did a
fist-and-palm gesture before asking, "Do you want to help Qin attack the rebels? Or do you want to lead the rebels to defeat Qin?" Hearing that, Liu Bang scolded him, "Stupid scholar! Everyone has been suffering under Qin rule for a long time. This is why everyone is rising up against Qin! What do you mean when you ask if I want to help Qin attack the rebels?" Li Yiji replied, "Of course, you want to rally everyone to rise up and destroy the barbaric Qin dynasty! Yet, you shouldn't be so disrespectful when you receive an elderly visitor." Liu Bang immediately stopped washing his feet, tidied his clothes, and invited Li Yiji to take a seat before apologising for his rude behaviour. After Li Yiji shared his views on current affairs, Liu Bang was so pleased that he offered Li Yiji food and asked what he should do next. Li Yiji said, Liu Bang then heeded Li Yiji's advice and led his men to capture Chenliu. To honour Li Yiji for his achievement, Liu Bang gave him the title "Lord Guangye" (). Li Yiji's younger brother
Li Shang also led a few thousand men to join Liu Bang in capturing the lands southwest of Chenliu. During this time, Li Yiji was often sent by Liu Bang as an emissary to meet the other rebel leaders. ==Service under Liu Bang during the Chu–Han Contention==