In 1974, López was selected by the Liberal Party in as their candidate for president after defeating former president Carlos Lleras Restrepo in the party presidential primaries. He won the general election by a large margin against the Conservative Party candidate Álvaro Gómez Hurtado and the ANAPO candidate, María Eugenia Rojas.