 While in Trinidad, Masterson arrested John Allen for the shooting death of Frank Loving, in what became known as the Trinidad Gunfight.In 1885 he became an under sheriff in Colfax County, New Mexico.In 1889, he took an active part in the Gray County War in Kansas.