He began his political career as an independent politician, he participated in the 1891 elections and obtained a seat as a representative for the Santiago de Cuba district.
He was one of the figures responsible for the rapprochement between Francisco Silvela and General Camilo García de Polavieja in 1898.
Starting in 1899, Gasset assumed the ideas of the Aragonese politician Joaquín Costa,[5] which he would try to put into practice in an attempt to improve agricultural irrigation, during the government of Francisco Silvela.
[3] In 1903, during his second term, under the Fernández-Villaverde government, Gasset promoted a program that emphasized hydraulic works and the construction of local roads, however, his proposals were unattended at the end of 1903, the result of the change of prime minister.
[4] He died on 11 April 1927, buried in Galapagar,[2] where the remains of his second wife Rita Díez de Ulzurrun also rest.