 While at UNAM, he worked with Luis Alvarez and Arthur Compton on experiments to show that cosmic rays were composed of protons.Later in life, Vallarta became involved in administration.In 1946, he became a member of the governing board of UNAM, and was director of the National Polytechnic Institute from 1944 to 1947.