Disclosed is a novel compound which has an activity of promoting the secretion of insulin from a pancreatic ss cell and is useful as a prophylactic and/or therapeutic agent for diseases associated with hyperglycemia, such as diabetes. Specifically disclosed is a compound represented by general formula (1) [wherein one of A and B represents a nitrogen atom and the other represents a nitrogen atom or CR10 X represents an oxygen atom, a sulfur atom or -(CH2)n-N(R12)- Y represents an oxygen atom, a sulfur atom or -N(R13)- and R1 to R9 independently represent a hydrogen atom or another substituent], a salt thereof, or a solvate of the compound or the salt.本發明係提供具有促進由胰臟β細胞分泌胰島素之作用,且可用於作為起因於高血糖之疾病,例如糖尿病之預防及/或治療劑的新穎化合物。下列一般式(1)所示之化合物或其鹽、或其溶劑化物[式中,A及B中之一者表示氮原子,另一者表示氮原子或CR10,X表示氧原子、硫原子或-(CH2)n-N(R12),Y表示氧原子、硫原子或-N(R13)-,R1~R9表示氫原子、其他之取代基]。