A chain lock is a chain with a lock. It often has a key or a combination lock attached to it. A long enough chain can pass through both wheels, the frame and attach the bicycle to an immovable object. Because of their inherent flexibility, chains are easier to secure around tricky-shaped objects than D-locks.