Citation:Domínguez, M., V. Muñoz, and J. A. Valdivia (2014), Temporal evolution of fractality in the Earth's magnetosphere and the solar photosphere, Abstract The study of complexity in two aspects of the magnetic activity in the Sun-Earth system is presented. We compare the temporal evolution of the magnetic fluctuations in the Earth's magnetosphere and the spatial distribution of the magnetic field in the solar photosphere, by calculating fractal dimensions from the data. It is found that the fractal dimension of the Dst data decreases during magnetic storm states and is well correlated with other indexes of solar activity, such as the solar flare and coronal indexes. This correlation holds for individual storms, full-year data, and the complete 23rd solar cycle. The fractal dimension from solar magnetogram data also correlates well with both the Dst index and solar flare index, although the correlation is much more clear at the larger temporal scale of the 23rd solar cycle, showing a clear increase around solar maximum.The main objective of this work is to characterize the occurrence of events such as geomagnetic storms and solar flares by means of a fractal dimension, as a way to measure the complexity of magnetic field time series and spatial patterns. In this context, we analyze the possible time correlation between the calculated fractal dimensions and various indexes of geomagnetic and solar dynamics.In particular, we calculate a box-counting fractal dimension [Addison, 1997], because of its simplicity and its intuitive meaning. Although the box-counting algorithm can provide only partial information on the complexity of the systems, in particular when they also exhibit multifractality as in our case, it is able to describe some features of solar and geomagnetic complexity as we will show below, and in fact it has also been successfully used in other studies of the Sun-Earth system [Osella et al.