One of the unsolved tasks in the problem of the nature of the Earth's magnetic field (EMF) is the reason for the displacement of the magnetic poles. The work draws attention to the temporal coincidence of the beginning of the accelerated drift of the north magnetic pole with the development of volcanic and tectonic activity in the Yellowstone caldera. Attention is drawn to the fact that the north magnetic pole is shifting towards the geographic pole relative to the geographic coordinates of the Yellowstone caldera. The relationship of these events cannot be explained based on the theory of hydromagnetic dynamo, but can be explained within the framework of the hypothesis of the connection of the Earth's magnetic field with the dipole moments of silicon dioxide molecules, identically oriented towards the center of the Earth under the influence of gravitational forces during quartz crystallization. If the ordered orientation of quartz molecules is disrupted during local volcanic activity, this should affect the displacement of the magnetic dipole axis. A simplified model of the Earth's magnetic field is presented based on a rotating charged ring with an uneven distribution of charges around the circumference of the ring. It is shown that the magnetic axis of the dipole shifts from the rotation axis towards a higher charge concentration. The article provides a detailed calculation of the Earth's magnetic field created by quartzites based on the proposed theory. The calculated average intensity of the Earth's magnetic field was equal to 43.68 A/m. This value almost identical to the average intensity of the observed Earth's magnetic field.