After their loss to the Dolan forces in the Five-Day Battle, the Regulators and their supporters quickly left town. Bonney remained in New Mexico, moving to Fort Sumner, New Mexico, 160 miles west of the Texas Panhandle, on the Pecos River. Bonney operated as a bandit in the area with his own gang, and survived until July 14, 1881, when he was shot and killed at Fort Sumner by Sheriff Pat Garrett of Lincoln County. Garrett had been given a mandate to get rid of Billy the Kid and his gang.