Abstract: The present invention relates to a GLP-1R receptor agonist compound and a use thereof. Specifically, the present invention discloses a compound represented by formula (I) or a pharmaceutically acceptable salt thereof. The compound can be used for treating a metabolism-related disease, such as diabetes or nonalcoholic fatty liver disease, by means of activating GLP-1R receptors.