The invention relates to the technical field of pharmaceutical preparations, in particular to a pharmaceutical composition containing mecobalamin and a preparation method thereof. The pharmaceutical composition containing mecobalamin is composed of, by mass percentage, 0.01-1% of methylcobalamin, 1%-10% of a stabilizer, 40-95% of a diluent, 0-20% of a disintegrant, and 0.1-10% of a lubricant. The preparation method consists of: premixing mecobalamine and part of the diluents, then mixing the pre-mixture with the stabilizer, the diluent and the disintegrant to obtain mixed powder, mixing the mixed powder with the lubricant for a certain period of time to obtain mixed raw material powder, and subjecting the mixed raw material powder to direct tabletting and coating. The method provided by the invention adopts a dry granulation process, involves fewer steps, avoids the influence of moisture and heat to the main drug, further improves the quality of mecobalamin tablets, lowers the cost, and is beneficial to industrial production.