A novel class of substituted pyridine and pyrimidine derivatives, methods for their preparation, pharmaceutical compositions comprising them and use thereof in the treatment and/or prevention of disorders in which a reduction of the blood glucose is beneficial. The derivatives are particularly useful for the treatment and/or prevention of non-insulin dependent diabetes mellitus (NIDDM).