He was the son of the merchant and mayor Lauritz Wilhelm Hansen (1816–1871) and his wife Elisa Margaretha Sundt (1814–1892).
[1] In 1859, he studied at the Royal Danish Academy of Fine Arts and a private school operated by Frederik Ferdinand Helsted.
[1] When King Charles visited the Exposition Universelle (1867), he awarded him the Order of Vasa.
[1] That year, an economic crisis precipitated by the Paris Bourse Crash forced the family business to declare bankruptcy.
The income from his paintings was insufficient, so in an attempt to improve his situation, he moved to Copenhagen.