 He served in the Royal Navy 1942–45, joining as an ordinary seaman and later being commissioned and promoted to lieutenant.His novel, "Very Ordinary Seaman", is based on his experiences in the navy.Mallalieu was Member of Parliament for Huddersfield from 1945 to 1950, and for Huddersfield East after boundary changes from 1950 to 1979.