It is intended to provide a pyrimidyl indoline compound which structurally differs from compounds used as active ingredients in conventional oral hypoglycemic agents and has excellent hypoglycemic effect. The present invention provides a compound represented by the general formula (I) or a pharmaceutically acceptable salt thereof: