The higher up we go in group 7 (halogens) of the periodic table, the more reactive the element. The explanation concerns how readily these elements form ions, by attracting a passing electron to fill the outer shell.
In fluorine the outer electron shell is very close to the positively charged nucleus, so the attraction between this nucleus and the negatively charged electrons is very strong. This means fluorine is very reactive indeed.
However, for iodine the outer electron shell is much further from the nucleus so the attraction is weaker. This means iodine is less reactive.