Iron deficiency can be treated and prevented by eating iron-rich foods such as in red meat, liver, raisins, spinach, broccoli and egg yolks. Iron supplements may also be recommended by the doctor.