A biosurfactant-producing thermophile was isolated from the Kahrizak landfill of Tehran and identified as a bacterium belonging to the genus Aneurinibacillus. A thermostable lipopeptide-type biosurfactant was purified from the culture medium of this bacterium and showed stability in the temperature range of 20-90 °C and pH range of 5-10. The produced biosurfactant could reduce the surface tension of water from 72 to 43 mN/m with a CMC of 1.21 mg/mL. The strain growing at a temperature of 45 °C produces a substantial amount of 5 g/L of biosurfactant in the medium supplemented with sunflower oil as the sole carbon source. Response surface methodology was employed to optimize the biosurfactant production using sunflower oil, sodium nitrate, and yeast extract as variables. The optimization resulted in 6.75 g/L biosurfactant production, i.e., 35% improved as compared to the unoptimized condition. Thin-layer chromatography, FTIR spectroscopy, 1H-NMR spectroscopy, and biochemical composition analysis confirmed the lipopeptide structure of the biosurfactant.