A connector that can be connected to a medical device having a female connector portion, and a tubular portion that can be inserted into the female connector portion, and when the tubular portion is inserted into the female connector portion, a part of the medical device is overcome. The main body member including a locking portion that moves in a predetermined locking direction and locks the medical device, and the locking portion in a state of locking the medical device are different from the predetermined locking direction. A lock member that is movable to a lock position that restricts movement in a predetermined unlocking direction and in which the locking portion locks the medical device, and the main body member includes the locking member A movement restricting portion for restricting the lock member from moving to the lock position while the portion is over the part of the medical device.雌コネクタ部を有する医療機器と接続可能なコネクタであって、前記雌コネクタ部内に挿入可能な筒部、及び前記筒部を前記雌コネクタ部内に挿入する際に、前記医療機器の一部を乗り越えた後に所定の係止方向に移動し、前記医療機器を係止する係止部、を備える本体部材と、前記医療機器を係止した状態の前記係止部が前記所定の係止方向と異なる所定の係止解除方向に移動することを制限するロック位置へと、前記係止部が前記医療機器を係止した状態において移動可能なロック部材と、を備え、前記本体部材は、前記係止部が前記医療機器の前記一部を乗り越えている間に前記ロック部材が前記ロック位置に移動することを規制する移動規制部を備える。