 He joined the Mexican Liberal Party in 1904.On 29 January 1911, Leyva, and a group of 30 guerrillas took the town of Mexicali, an event that marked the beginning of the liberation campaign of PLM in Baja California.After the invaded Ciudad Juarez, Leyva decided to join the party, naming Francisco I. Madero commander of forces in Baja California and then political head of Cuajimalpa in the Federal District.