Marquez was completing his warmup pitches at the start of the seventh inning when he hopped off the mound favoring his right leg. He was helped off the field and into the clubhouse and relieved by left-hander Jake McGee.
Marquez had allowed just two hits in a scoreless game and struck out 10 before exiting. It was the ninth game in his career and first this season with double-digit strikeouts.
"It started in my back in the sixth and at the start of the seventh it was all over,'' Marquez said after the game, a 5-1 loss by Colorado. "I got an IV and had it iced. I feel better.''
The Associated Press contributed to this report.