During the Mexican-American War Mexican bandits were raiding American supply lines and the American Army could not stop it. Several companies of Texas Rangers were raised to serve both on the border and in the interior of Mexico. Their often brutal methods reduced the raids and provided valuable intelligence.