The Garden was founded through a donation in 1791 by the historian and antiquarian Bengt Bergius and his brother Peter Jonas Bergius, a physician and scientist, for the Royal Swedish Academy of Sciences, and was originally located at their mansion and its adjacent garden on the Karlbergsvägen road, in what is now the Vasastaden district in central Stockholm. which at the time still had a largely rural character. The Garden was donated to the Royal Academy after the brothers' death in 1791, in accordance with their will. The first person to serve as director was Olof Swartz.