This study aimed to optimize pyrolysis conditions to maximize bio-oil yield from cattle dung, a waste product of livestock practices. Pyrolysis of cattle dung was carried out in batch type reactor. The pyrolysis process was optimized using a central composite design in response surface methodology, with conversion parameters such as pyrolysis temperature, vapor cooling temperature, residence time, and gas flow rate taken into account. The cattle dung bio-oil was analyzed using gas chromatography/mass spectroscopy (GC/MS), an elemental analyzer, a pH probe, and a bomb calorimeter. Furthermore, the ASTM standard procedures were used to determine the bio-fuel characteristics. The optimized conditions were found to be a pyrolysis temperature of 402 °C, a vapor cooling temperature of 2.25 °C, a residence time of 30.72 min, and a gas flow rate of 1.81 l min−1, resulting in a maximum bio-oil yield of 18.9%. According to the findings, the yield of bio-oil was predominantly affected by pyrolysis temperature and vapor cooling temperature. Moreover, the bio-oil that was retrieved was discovered to be similar to conventional liquid fuels in numerous ways.