Liuba County () is a county under the administration of Hanzhong City, in the southwest of Shaanxi province, China. It is the northernmost county-level division of Hanzhong.
The Zhang Liang temple is located in Liuba, Zhang Liang supposedly lived in reclusion at the site. There is also a 4000-year old Ginkgo tree in the county.
As of 2019, Liuba County is divided to 1 subdistrict and 7 towns.