Cosmic magnetic fields are fundamental components of the universe, influencing the formation and dynamics of cosmic structures such as galaxies, stars, and planets. These fields are generated by various processes, including dynamo actions in celestial bodies and the movement of charged particles in space, and they play a crucial role in cosmic ray propagation and the interstellar medium's behavior.