A device for freeing cocoons of the Megachilidae bees against external parasites and spores of pathogenic fungi contains a bunker for loading the cocoons, a conveyer to deliver the cocoons, a chamber for heating the cocoons, a gas-jet and a cocoon receiver.