The theory is that caffeine may limit muscle pain by blocking the activity of a chemical called adenosine. It's released as part of the inflammatory response to injury and can activate pain receptors in body cells.
Scientists reporting in the Journal of Sports Nutrition and Exercise Metabolism suggest that caffeine could be a safe way for exercisers to preempt muscle soreness.