The present invention relates to a new class of heterocyclic compounds and pharmaceutically acceptable salts thereof, process for preparing the same, pharmaceutical composition containing these compounds and to their use in treatment of diseases caused due to formation and accumulation of AGEs (Advanced Glycation end products). The compounds of the present invention are useful for the treatment of diabetic and aging-related complications caused by formation and accumulation of AGEs, such as neuropathy, nephropathy, microangiopathy, retinopathy, hypertension, heart failure, atherosclerosis, Alzheimer's disease & dermatological disorders.