Why Did People Take Iodine Pills After Chernobyl Exploded?

In the HBO miniseries ‘Chernobyl,’ a Soviet physicist realizes that there’s been a release of radioactive material nearby and immediately pops an iodine pill. Why?

Source: https://www.livescience.com/65634-chernobyl-explosion-nuclear-disaster-iodine.html