A cable lock includes a lock body and a belt which constitutes a closed loop. The closed loop is adjustable when the lock body is in an unlock condition. When the lock body is switched to a lock condition, the belt is restricted so that the closed loop is not adjustable.