The present invention relates to a process for preparing a pharmaceutical composition of vildagliptin under oxygen free inert gas atmosphere. The present invention particularly relates to a pharmaceutical composition of vildagliptin obtained by the process which is stable to oxygen physiologically and chemically.