Provided is an EP2 agonist having excellent safety. A compound represented by general formula (I)(wherein all symbols are as defined in the description), a salt or N-oxide of the compound, or a solvate or prodrug of the compound or the salt or N-oxide has an EP2 agonist activity and is highly safe, and is therefore useful as a medicine, particularly a therapeutic agent for diseases associated with EP2 receptors, such as immune diseases, allergic diseases, neuronal death, dysmenorrhea, premature birth, miscarriage, baldness, ocular diseases, erectile dysfunction, arthritis, lung injury, pulmonary fibrosis, pulmonary emphysema, bronchitis, chronic obstructive pulmonary disease, bone diseases and cartilage injury.