Adequate postoperative analgesia after hallux valgus (HV) correction surgery improves early mobilization and decreases hospital stay. Peripheral nerve block and peri‐incisional local anesthetic (LA) infiltration are both widely used for pain management in orthopedic surgeries. The aim of this study was to compare the analgesic effects between the ankle block and peri‐incisional infiltration technique in patients undergoing HV correction surgery. Ninety patients scheduled for hallux valgus correction surgery were randomly allocated into three groups. In group N, patients were pretreated with tibial and peroneal nerve blocks with 8‐10 mL of 0.25% bupivacaine before surgery. In group P, patients received the same LA for peri‐incisional infiltration preoperatively. In group C, patients underwent surgery without regional analgesic pretreatment. All patients had intravenous fentanyl patient control analgesia as part of multimodal postoperative pain management. Fentanyl consumption, rest and moving pain scale, and adverse effects were evaluated at postoperative 6 h (Poh6), Poh12, Poh 24, and Poh36, respectively. Patients receiving bilateral feet surgeries were excluded in this study. Seventy‐five patients were enrolled into final analysis. The patients in group N expressed lower resting and moving pain scores at Poh6, but the pain scores turned similarly among the three groups following Poh12 and then. The total fentanyl consumption was significantly less in group N than in group P. The postoperative activities and mood disturbance were not significantly different between groups after Poh12 and then. We conclude that ankle block is better than peri‐incisional LA infiltration in HV correction surgery in pain relief and fentanyl consumption.