Several incidents in Texas, including the killing of the son of a Yamparika chief in 1803, almost led to war, but the intervention of the western Comanches maintained peace. In both Texas and New Mexico, Comanches joined with the Spanish army to fight Apaches. The most noteworthy success was when they helped General Ugaldi crush the Lipan in southern Texas (1789–90). The Lipan were badly mauled, and retreated across the Rio Grande into northern Mexico, but this was not beyond the reach of Comanches who continued to attack them for many years.