A compound of formula (I) (wherein R.sup.1 is a hydrogen atom, a
hydrocarbon group which may be substituted, a non-aromatic heterocyclic
group which may be substituted, R.sup.2 is a hydrocarbon group which may
be substituted, a non-aromatic heterocyclic group which may be
substituted, or R.sup.1 and R.sup.2 may combine to each other together
with A to form a heterocyclic group which may be substituted; A is N or
N.sup.+--R.sup.5.Y.sup.- (R.sup.5 is a hydrocarbon group; Y.sup.- is a
counter anion); R.sup.3 is a cyclic hydrocarbon group which may be
substituted or a heterocyclic group which may be substituted; n is 0 or
1; R.sup.4 is a hydrogen atom, a hydrocarbon group which may be
substituted, a heterocyclic group which may be substituted, an alkoxy
group which may be substituted, an aryloxy group which may be
substituted, or an amino group which may be substituted, E is a divalent
aliphatic hydrocarbon group which may be substituted by group(s) other
than oxo; G.sup.1 is a bond, CO or SO.sub.2; G.sup.2 is CO, SO.sub.2,
NHCO, CONH or OCO; J is methine or a nitrogen atom; and each of Q and R
is a bond or a divalent C.sub.1-3 aliphatic hydrocarbon which may be
substituted; provided that J is methine when G.sub.2 is OCO, that one of
Q and R is not a bond when the other is a bond and that each of Q and R
is not substituted by oxo group(s) when G.sup.1 is a bond) or a salt
thereof has a potent CCR5 antagonistic activity and can be advantageously
used for the treatment or prevention of infectious disease of various HIV
in human (e.g. AIDS).