A planetary magnetosphere is a region around a planet dominated by the planet's magnetic field, which protects the planet from solar and cosmic radiation by deflecting charged particles. The structure and dynamics of a magnetosphere are influenced by the planet's magnetic field strength, rotation, and interaction with the solar wind.