The article offers a reconstruction of the part of Heraclitus' teaching about the origin of the world, which contains information about the structure of this very origin. The philosopher's idea of this structure is clarified, using the results of the comparative analysis of the original world in Thales and Anaximenes. Thus, the original for Heraclitus is the fiery element, eternal, indestructible and consisting of the smallest parts. The structure of "fire" is composed of a plurality of certain raspings. As a result of the ongoing process of "melting", from the "particles" of matter, there appear other primary elements, then planets and stars, the cosmos itself. This is how Heraclitus conceived both the eternal cycle of primary elements, and the processes of cosmogony.