Disclosed are: a novel compound which has both an antagonistic activity on an angiotensin II receptor and a PPARγ-activating activity and is therefore useful as a prophylactic and/or therapeutic agent for hypertension, heart diseases, arteriosclerosis, type-2 diabetes, diabetic complications, metabolic syndrome or the like; and a pharmaceutical composition containing the compound. Specifically disclosed are: a compound represented by general formula (I) (wherein the ring A represents a pyridine ring; the ring B represents a tetrazole ring or an oxadiazol-5(4H)-one ring; X represents C—R5 or a nitrogen atom; R1 represents a C1-6 alkyl group; R2 represents a C1-6 alkyl group or a C3-8 cycloalkyl group; and R3, R4, R5 independently represent a hydrogen atom, a halogen atom, a C1-6 alkyl group, a halo-C1-6 alkyl group, or a C1-6 alkoxy group which may have a substituent), a salt of the compound, or a solvate of the compound or the salt; and a pharmaceutical composition containing the compound, the salt or the solvate.