The purpose of the invention is to create a compound that selectively activates liver glucokinase and in particular to provide a drug having low hypoglycemic risk for the treatment and prevention of diabetes and impaired glucose tolerance. A compound represented by general formula (1) [in the formula, ring A shows a thiazolyl group, pyridyl group, pyrazyl group, or pyrazolyl group, L shows -(CO)-, -(CS)-, or -SO