A heteroaryl derivative of the formula (1): ##STR00001## (wherein Ring Z
is an optionally substituted heteroaryl, R.sup.1 is a carboxyl group or
an alkoxycarbonyl group, etc., W.sup.1 and W.sup.2 are an optionally
substituted lower alkylene, Ar.sup.1 is an optionally substituted arylene
or an optionally substituted heteroarylene, W.sup.3 is a single bond, a
lower alkylene, a lower alkenylene, etc., W.sup.4 is a single bond,
--NR.sup.10--, etc., Ar.sup.2 is an optionally substituted aryl or an
optionally substituted heteroaryl), or a prodrug thereof, or a
pharmaceutically acceptable salt thereof.