[Problem] To provide a compound useful as a novel agent which is excellent in preventing and/or treating cannabinoid receptor type 2-related diseases, based on agonist action on a cannabinoid receptor type 2 [Means for Solution] The present inventors conducted thorough investigation regarding compounds having agonist action on a cannabinoid receptor type 2. They confirmed that the fused ring pyridine compound of the present invention has excellent agonist action on the cannabinoid receptor type 2, thereby completing the present invention. The fused ring pyridine compound of the present invention has agonist action on the cannabinoid receptor type 2, and can be used as an agent for preventing and/or treating cannabinoid receptor type 2-related diseases, for example, inflammatory diseases and pain.