The formation of mycotoxins by microscopic fungi was studied during experimental storage of freshly harvested corn in cobs and grain at a 26--35% humidity level. During the corn storage in cobs aflatoxins, kojic acid and zearalenon and during the corn storage in grain zearalenon and ochretoxin A were detected in corn. Mycotoxins we found in maximum amounts in the areas of cob storage where the temperature reached 30--45 degrees C due to selfheating. The synthesis of mycotoxins can be arrested or they can be degraded at further temperature rise to 50--60 degrees C. The highest content of zearalenon, ochretoxin A and kojic acid was seen on the 8--12th day after the onset of self-heating.