Mattingly was born in Chicago, Illinois. Educated in Florida, he completed a degree in aeronautical engineering at Auburn University. He joined the navy in 1958 and trained as a pilot. In 1966 he was chosen for the Apollo program. He spent 504 hours in space, and retired from NASA in 1985.