The present invention relates to compounds of the formula I, as well as pharmaceutically-acceptable salts thereof, pharmaceutical compositions containing said compounds and methods of using said compounds in the treatment or prophylaxis of diseases and disorders. The compounds and compositions disclosed herein are glucokinase activators useful for the treatment or prophylaxis of metabolic diseases and disorders, for example diabetes mellitus, including type II diabetes mellitus.