The invention provides a pharmaceutical composition containing vildagliptin and metformin. In the pharmaceutical composition, vildagliptin is good in content uniformity, high in dissolution rate and stable in product. A preparation method of the pharmaceutical composition comprises the steps that metformin hydrochloride and an adhesive are prepared into granules through a fluidized bed granulation technology; the granules, vildagliptin and a filler are mixed to be uniform, and then dry granulation is conducted; the mixture is mixed with a lubricant, and tablets are prepared. By means of the fluidized bed granulation technology, the fluidity and compressibility of metformin hydrochloride are greatly improved, the granularity of vildagliptin is controlled to be within a certain range, direction contact of metformin hydrochloride and vildagliptin is reduced, and degradation of vildagliptin is reduced; by means of dry granulation, the content uniformity, a tablet weight difference and the like of the granules all meet the requirements. By means of the preparation process, compound preparations with small differences between batches can be obtained, the friability, content uniformity and stability of the tablets all meet the requirements, and the pharmaceutical composition can be subjected to scale-up production in a workshop.