Metal oxide-based catalysts play an important role in the transesterification reaction of vegetable oils for fatty acid methyl ester (FAME) production. Additionally, nanocatalysts demonstrate high efficiency due to their increased surface area, higher catalytic activity, and easy operational procedures. Thus, the main objective of this work is to investigate FAME production from sunflower oil using barium oxide (BaO) nanoparticles. BaO was synthesized through one-pot sol–gel reactions and was analysed by several techniques, such as X-ray diffraction (XRD), transform infrared spectrometry (FT-IR), scanning electron microscopy (SEM), energy dispersive X-ray fluorescence(EDXRF), N2 adsorption–desorption of liquid nitrogen at 77 K [Brunner–Emmett–Teller (BET)] for surface area measurement and UV–Vis spectroscopy. BaO behaved as an efficient catalyst in the transesterification of oils into FAMEs. Furthermore, the impacts of a variety of reaction parameters on the biofuel yield were explored. The catalyst with 4.7 wt% has the maximum yield of 78.38 % achieved under the optimized reaction conditions (70 °C, 1:20 M ratio of oil:methanol). The characteristics of the resulting methyl ester partially agreed with international FAME standards, making it suitable for use as a blend with petroleum diesel in proportions defined by volume according to the specifications of the American Society for Testing and Materials(ASTM). The catalyst was also evaluated for reusability tests, and the reusability through the reaction showed less than a 7 % conversion drop after 3 runs and 14.6 % after 5 runs.