A carboxylic acid derivative of formula (I): ##STR00001## wherein R.sup.1
is --COOH, --COOR.sup.6, etc.; A is a single bond, alkylene, etc.;
R.sup.2 is alkyl, alkoxy, etc.; B is a carbocyclic ring or a heterocyclic
ring; Q is alkylnene-Cyc2, etc.; D is a linking chain; and R.sup.3 is
alkyl, a carbocyclic ring or a heterocyclic ring, or a non-toxic salt
thereof. The compound of formula (I) binds to PGE.sub.2 receptor,
especially subtypes EP.sub.3 and/or EP.sub.4 and show the antagonizing
activity, are useful for the prevention and/or treatment of diseases
induced pain, itch, urticaria, allergy, urinary frequency, urinary
disturbance, Alzheimer's disease, cancer, dysmenorrhea, endometriosis,
etc.