The relativistic wave equation for spin-1/2 particles in the interior Schwarzschild solution in the presence of a uniform magnetic field is obtained. The fully relativistic regime is considered, and the energy levels occupied by the particles are derived as functions of the magnetic field, the radius of the massive sphere and the total mass of the latter. As no assumption is made on the relative strengths of the particles’ interaction with the gravitational and magnetic fields, the relevance of our results to the physics of the interior of neutron stars, where both the gravitational and the magnetic fields are very intense, is discussed.