A bending mechanism includes a vertical driving portion with a central axis that extends along an X-axis direction, a horizontal driving portion with a central axis that extends along the X-axis direction and is adjacent to the vertical driving portion in a Y-axis direction, a vertical rotary portion that is coupled to the vertical driving portion and is rotated, and a horizontal rotary portion adjacent to the vertical rotary portion in the Y-axis direction that is coupled to the horizontal driving portion and is rotated. The binding mechanism further includes a holding portion holding a vertical operation wire extending from the vertical rotary portion to a rear surface on the side where the horizontal rotary portion is disposed, and holding a horizontal operation wire extending from the horizontal rotary portion to the rear surface on the side of the vertical rotary portion and further intersecting with a vertical operation wire.