Hayes was generally known as one of the six flag raisers immortalized in the iconic photograph Raising the Flag on Iwo Jima by photographer Joe Rosenthal. The first flag raised over Mount Suribachi on February 23, 1945 at the south end of Iwo Jima, was deemed too small and replaced the same day by a larger flag. As there was no photograph of the first flag-raising, the second flag-raising photograph which included Hayes in it, became famous and was widely reproduced. After the battle, Hayes and two other men were identified as surviving second flag-raisers and were reassigned to help raise funds for the Seventh War Loan drive. In 1946, after his service in the Marine Corps, he was instrumental in revealing the correct identity of one of the Marines in the photograph.