The present invention relates to new thiadiazolidmediones of formula (I), or any pharmaceutically acceptable salt, solvate or prodrug thereof, and its use in the treatment of a disease in which glycogen synthase kinase 3 (GSK-3) is involved, particularly neurodegenerative diseases, inflammatory and autoimmune diseases and cardiovascular disorders. Additionally, there is provided a process for preparing such compounds, as well as pharmaceutical compositions comprising them.