"immunomodulating heterocyclic compounds". The present invention relates to compounds of formula (I) are cd80 inhibitors and useful in immunomodulation therapy: R1 and R3 independently represent h; f, ci; br; -no ~ 2 ~; -cn; C 1-6 alkyl optionally substituted by f or c 1; or C1-6 alkoxy, optionally substituted by f; R4 represents a carboxylic acid group (-cooh) or an ester thereof, or -c (= o) nr ~ 6 ~ r ~ 7 ~, -nr ~ 7 ~ c (= o) r ~ 6 ~ , -nr ~ 7 ~ c (= o) or ~ 6 ~, nhc (= o) nr ~ 7 ~ r 6 ~ or nhc (= s) nr ~ 7 ~ r ~ 6 ~ where: r ~ 6 ~ represents h or a radical of the formula - (alq) -m -q, where: m is 0 or 1; Alk is a divalent, optionally substituted, linear or branched C 1-12 alkylene or C 2-12 alkenylene or C 2-12 alkynylene radical or divalent radical C3-12 carboxylic acid, any of which may contain one or more of the -o-, -s- or -n (r8-) bonds where r8- represents h or c1- - C 1-4 alkyl, C 3- C 4-4 alkenyl, C 3- C 4-4 alkynyl or C 3- C 6 cycloalkyl eq represent h; -nr ~ 9 ~ r ~ 10 ~ where r ~ 9 ~ and r ~ 10 ~ independently represent h; C 1-1 -C 4 alkyl; C 3-3 -C 4 alkenyl; C 3-3 -C 4 alkynyl; C3 -C6 cycloalkyl; an ester group; an optionally substituted carbocyclic or heterocyclic group; or R 9 and R 10 form a ring when taken together with the nitrogen to which they are attached, the ring being optionally substituted; and R7 represents h or C1-6 alkyl; or when taken together with the atom or atoms to which it is attached, it is attached to r 6 and r 7 forming an optionally substituted monocyclic anal having 5, 6 or 7 ring atoms; ex represents a divalent bond or radical of the formula - (z) - n - (alq) - or - (alq) - (z) - n - - where z represents -o-, -s- or -nh-, alq is as defined in relation to ar ~ 6 ~ n and is 0 or 1."compostos heterocíclicos de imunomodulação". a presente invenção refere-se a compostos da fórmula (i) são inibidores de cd80 e úteis na terapia de imunomodulação: r~ 1~ e r~ 3~ representam, independentemente h; f, ci; br; -no~ 2~; -cn; c~ 1-6~ al