A magnetic field generating apparatus is the magnetic field generating apparatus that transmits a control signal by a magnetic field to a capsule endoscope that performs control of start and stop according to the control signal. The magnetic field generating apparatus includes a housing including a storing section in which the capsule endoscope is arranged, a magnetic field generating section that generates the magnetic field, and a shield section that shields a leakage electromagnetic field leaking to an area other than the storing section in the magnetic field generated by the magnetic field generating section.