O'Malley was elected Member of Parliament for Rotherham in a 1963 by-election. He served as a government whip from 1964 to 1969. He was junior Health and Social Security Minister from 1969 to 1970, and became Minister of State for that department in 1974.