An apparatus to lock a vehicle seat-rail includes a locking pin to pass through a fixing bracket, and a detachment preventing device to inhibit the locking pin from being detached from the fixing bracket in a direction, while the locking pin moves on the fixing bracket. In particular, the detachment preventing device includes: a catching jaw formed in the locking pin; a guide hole formed in an end of the fixing bracket; and a bush to wrap around the locking pin. The catching jaw is caught the bush and thus the locking pin inserted in the guide hole is inhibited from being detached.