From 1979 to 1982, Oliart was a Member of the Congress of Deputies. He was the Minister of Health from 1980 to 1981 and Minister of Defence from 1981 to 1982. Oliart was a cabinet member during the Adolfo Suárez and Leopoldo Calvo-Sotelo governments.