There is provided a machining unit (10) that machines a rod-shaped member (W). The machining unit (10) includes: a first unit (23) including a first split die portion on an upper side, out of upper and lower split die portions that form a pair and include a bending channel that bends the rod-shaped member (W), and a first clamp portion on an upper side, out of upper and lower clamp portions that form a pair and hold the rod-shaped member inserted into the bending channel; a second unit (22) including a second split die portion on a lower side out of the upper and lower split die portions that form a pair and a second clamp portion on a lower side out of the upper and lower clamp portions that form a pair; a pressure unit (30) including a holding channel that holds the rod-shaped member in the bending channel from an outer circumferential side of the bending channel; and an opening-closing unit (69) that opens and closes the first unit (23), the second unit (22), and the pressure unit (30) in three different d