Geranium (Pelargonium graveolens) is known for being an aromatic plant rich in bioactive compounds with antibacterial properties. In this study, geranium essential oil (GEO) was extracted and encapsulated in ultrafine bean starch fibers produced by electrospinning as an antibacterial agent. GEO revealed a composition rich in volatile compounds, including citronellol, cis-geraniol, β-linalool, citronellyl formate, and linalool formate. In its free form, GEO exhibited high antibacterial activity against pathogenic bacteria strains (L. monocytogenes, S. aureus, and E. coli). The bean starch fibers, produced with and without the addition of GEO, were uniform and continuous, with an average diameter ranging from 249 to 373 nm. Confocal analysis indicated a uniform distribution of GEO in the fibers, with a loading capacity of 54.0 %, 42.9 %, and 36.5 % for 20 %, 30 %, and 40 % GEO concentrations, respectively. Remarkably, fibers containing 40 % GEO showed a significant reduction in tested bacteria (L. monocytogenes, S. aureus, and E. coli), suggesting promising applications in preventing losses and extending the shelf life of food through active packaging.