The HFE gene encodes a protein that controls the amount of iron absorbed from the diet.