Oxidative stress is a causative factor of depression and several studies have reported that gallic acid or the derivatives thereof had proven to be effective in displaying antidepressant like action in animal models. Owing to the antioxidant property of GA and the study of structural features it was hypothesized to design new small molecule antidepressant drugs based on GA containing piperazine/piperidine. The two step reaction involved the formation of acid chloride of GA and its conversion to the target compounds in presence of acetone. All the compounds were subjected to evaluation of antidepressant effect using the widely used TST and FST models in mice at dose of 40mg/kg intraperitoneally. The synthesized compounds 2b, 2c and 2e were able to reduce the immobility time in both the models as comparable to the reference compound fluoxetine (10mg/kg) while compounds 2a and 2d were not very significant in reducing the immobility of mice.