In 1916 the 24th Infantry guarded the Mexico–United States border to keep the Mexican Revolution from spilling onto U.S. soil. When it did, the 24th joined the "Punitive Expedition" under General Pershing and entered Mexico to fight Pancho Villa's forces. In 1919, rebels and troops of the Mexican government fought in Ciudad Juárez, Chihuahua, which borders the U.S. city of El Paso, Texas. The 24th Infantry crossed over again to engage the rebels, ensuring that no violence erupted across the U.S. border.