The present invention relates to novel pyridine derivatives such as compounds of the formula (I): n n n n n n n n n n and the use of such compounds or pharmaceutical compositions thereof in the treatment of diseases, particularly pain, which are mediated by the activity of the cannabinoid 2 receptor.