A male connector (1a, 1a', 1b, 1c) connectable to a female connector (2, 2a, 2b) having an elastic valve body, the male connector (1a, 1a', 1b, 1c) comprising: a housing that defines a hollow portion (29, 39); a flow path tubular member (40a, 40c) that extends inside the hollow portion (29, 39) and has an opening at one end portion in an extending direction; and a valve body (50a, 50c) that is positioned inside the hollow portion (29, 39) and closes the opening of the flow path tubular member (40a, 40c), wherein the housing comprises: a housing main body (20a, 20a', 20a", 20b, 20c); and a moving body (30a, 30a', 30a", 30b, 30c) that moves with respect to the housing main body (20a, 20a', 20a", 20b, 20c) and deforms or moves the valve body (50a, 50c) so as to change a mode between a first mode in which the opening of the flow path tubular member (40a, 40c) is closed by the valve body (50a, 50c) and a second mode in which the opening of the flow path tubular member (40a, 40c) is open from the valve body (50a, 50c), the flow path tubular member includes a flow path tube main body extending into the hollow portion of the housing, and wherein the valve body covers the flow path tube main body inside the housing, characterized in that the moving body (30a, 30a', 30a", 30b, 30c) comprises a locking portion that locks the female connector (2, 2a, 2b) in a state in which the valve body (50a, 50c) and the elastic valve body of the female connector (2, 2a, 2b) abut on each other to form an abutment region, and at least any one of the housing main body (20a, 20a', 20a", 20b, 20c) and the moving body (30a, 30a', 30a", 30b, 30c) comprises a switching portion that is displaceable between a restriction position to restrict movement of the other of the housing main body (20a, 20a', 20a", 20b, 20c) and the moving body (30a, 30a', 30a", 30b, 30c) so as to maintain the first mode and an allowing position to allow the movement of the other so as to change from the first mode to the second mode while maintaining a state in which the locking portion locks the female connector (2, 2a, 2b). a housing that defines a hollow portion (29, 39); a flow path tubular member (40a, 40c) that extends inside the hollow portion (29, 39) and has an opening at one end portion in an extending direction; and a valve body (50a, 50c) that is positioned inside the hollow portion (29, 39) and closes the opening of the flow path tubular member (40a, 40c), wherein the housing comprises: a housing main body (20a, 20a', 20a", 20b, 20c); and a moving body (30a, 30a', 30a", 30b, 30c) that moves with respect to the housing main body (20a, 20a', 20a", 20b, 20c) and deforms or moves the valve body (50a, 50c) so as to change a mode between a first mode in which the opening of the flow path tubular member (40a, 40c) is closed by the valve body (50a, 50c) and a second mode in which the opening of the flow path tubular member (40a, 40c) is open from the valve body (50a, 50c), a housing main body (20a, 20a', 20a", 20b, 20c); and a moving body (30a, 30a', 30a", 30b, 30c) that moves with respect to the housing main body (20a, 20a', 20a", 20b, 20c) and deforms or moves the valve body (50a, 50c) so as to change a mode between a first mode in which the opening of the flow path tubular member (40a, 40c) is closed by the valve body (50a, 50c) and a second mode in which the opening of the flow path tubular member (40a, 40c) is open from the valve body (50a, 50c), the flow path tubular member includes a flow path tube main body extending into the hollow portion of the housing, and wherein the valve body covers the flow path tube main body inside the housing, characterized in that the moving body (30a, 30a', 30a", 30b, 30c) comprises a locking portion that locks the female connector (2, 2a, 2b) in a state in which the valve body (50a, 50c) and the elastic valve body of the female connector (2, 2a, 2b) abut on each other to form an abutment region, and at least any one of the housing main body (20a, 20a', 20a", 20b, 20c) and the moving body (30a, 30a', 30a", 30b, 30c) comprises a switching portion that is displaceable between a restriction position to restrict movement of the other of the housing main body (20a, 20a', 20a", 20b, 20c) and the moving body (30a, 30a', 30a", 30b, 30c) so as to maintain the first mode and an allowing position to allow the movement of the other so as to change from the first mode to the second mode while maintaining a state in which the locking portion locks the female connector (2, 2a, 2b).