He financed his education by writing novels and he was awarded a gold medal in 1876 for an essay on fungi.
Employed by the Carlsberg Laboratories in Copenhagen, he made the important discovery that yeast was composed of different kinds of fungi and that the yeast culture could be cultivated. See Fermentation, Yeast.
Even Pasteur admired Hansen's work.