To observe the efficacy of infiltrating injection of local anesthetic and oral NSAIDs for postoperative pain of total knee arthroplasty(TKA). 50 patients undergoing TKA were randomly assigned to two groups. The study group received intraoperative infiltrating injection of ropivacaine around knee and perioperative oral celecoxib. The control group received intravenous analgesia pump. The VAS scores in postoperative 3 days of the study group (4.2±0.6 ,4.6±0.8 ,4.6±1.1 ) were lower than the control group ( 6.5 ±0.7 ,6.4 ±1.0 ,6.1 ±0.9 ) . The differ-ence was statistically significant(P<0.05),and the dose of remedial morphine of the study group (10.6±7.7)mg was less than the control group (18.4±10.3) mg. The difference was statistically significant(P<0.05). Infiltra-ting injection of ropivacaine and oral celecoxib could effectively relieve postoperative pain of TKA which was better than intravenous analgesia pump.