An injectable pharmaceutical composition containing meloxicam, and a preparation method therefor. The pharmaceutical composition comprises meloxicam nanoparticles, a surface stabilizer, and a sedimentation inhibiting agent. The pharmaceutical composition has good stability, is not easy to settle, and is applicable to industrial large-scale production.