The present invention relates to 2-(benzoylamino)benzoic acid derivatives of the formula (I), wherein the variants Ar, X and R are described in the specification. The said compounds modulate the activity of peroxisome proliferator-activated receptors (PPAR) α and/or γ, and are predicted to be useful in the treatment of metabolic diseases, e.g. type II diabetes.