The present invention refers to the use of compounds derived from trisubstituted 1H-pyrrole rings and aromatic rings, which have the following formula (I):whereinR1 and R2 represent, independently of each other:an optionally substituted phenyl ring, oran optionally substituted 5-membered heteroaromatic ring;one of R3 and R4 is H and the other represents agroup wherein W is OH or an ortho-aniline group;each A, independently of each other, represents a -CH2- group or is absent; =Y-Y= is =HC-CH=, =N-CH=, or =HC-N=;or a salt or solvate thereof,in the prevention or treatment of an autoimmune disease.