Liu Ba (died 222),courtesy nameZichu, was an official in the state of Shu Han during the Three Kingdoms period. He originally served under the warlord Liu Zhang before becoming a subordinate of Liu Bei (the founding emperor of Shu) after Liu Zhang's surrender to Liu Bei in 214. Liu Ba was instrumental in helping Liu Bei reward his subordinates from the treasury without impoverishing the common people after their conquest of Yi province. Liu Ba also helped write the Shu Ke (蜀科), the legal code of Shu, along with Zhuge Liang, Li Yan, Mi Zhu, Dong He and others. Liu Ba served as a high-ranking minister in Shu until his death in 222.