A magnetically-recyclable nanocatalyst was designed for the one-step production of biodiesel from feedstocks with a high free fatty acid content.