He was born Niels Madsen on the farm in Egtved village in Skjoldenæsholms Birk on the island of Zealand, Denmark to Mads Nielsen and Dorthe Hansdatter.
July 1723 he got an opportunity to travel out of the country as a royal gardening apprentice.