It is established that the large-scale and global magnetic fields in the Sun's atmosphere do not change smoothly, and long-lasting periods of gradual variations are superseded by fast structural changes of the global magnetic field. Periods of fast global changes on the Sun are accompanied by anomalous manifestations in the interplanetary space and in the geomagnetic field. There is a regular recurrence of these periods in each cycle of solar activity, and the periods are characterized by enhanced flaring activity that reflects fast changes in magnetic structures. Is demonstrated, that the fast changes have essential influencing on a condition of space weather, as most strong geophysical disturbances are connected to sporadic phenomena on the Sun. An explanation has been offered for the origin of anomalous geomagnetic disturbances that are unidentifiable in traditionally used solar activity indices. Is shown, main physical mechanism that leads to fast variations of the magnetic fields in the Sun's atmosphere is the reconnection process.