A spacecraft is described which uses a magnetic field source to generate a shield magnetic field to protect the spacecraft from energetic charged particles. The field may be perturbed to increase the effectiveness of the protection. Injection of material into the shield cavity to enhance the local plasma density may also be used.