"If I Had a Hammer (The Hammer Song)" is a song written by Pete Seeger and Lee Hays. It was written in 1949 in support of the progressive movement, and was first recorded by The Weavers, a folk music quartet composed of Seeger, Hays, Ronnie Gilbert, and Fred Hellerman. It was a number 10 hit for Peter, Paul and Mary in 1962 and then went to number three a year later when recorded by Trini Lopez in 1963.