 Shortly after the death of his father, when he was 16, he entered the Military Academy of Guadalajara to join the Corps of Engineers of the Spanish Army, specializing himself in bridges, railways and telegraphs.He requested to be transferred to Cuba but he was send several times to Barcelona, Madrid or Seville, ascending from telegrapher to captain.As an officer in the Spanish army, he positioned himself in favor of its modernization.