Doctors in hospitals typically use electromagnets for various medical procedures and imaging techniques, such as MRI (magnetic resonance imaging). These electromagnets produce a strong magnetic field that allows for detailed images of the body's internal structures.