2,4-thiazolidinedione and 2-thioxo-4-thiazolidinone derivatives as aldose reductase inhibitors in the search for drugs to prevent long-term diabetes complications.