The utility model relates to a bicycle lock which comprises a flexible lock chain and a storage box with a self-locking function, an annular structure is arranged at one end of the flexible lock chain, a plug capable of penetrating through the annular structure is arranged at the other end of the flexible lock chain, a locking piece is arranged in the storage box, and the plug is detachably connected with the storage box through the locking piece. According to the bicycle lock, sundries can be stored in the storage box, a bicycle can be locked through cooperation of the flexible lock chain and the storage box, the bicycle lock has the bicycle locking function and the storage function at the same time, multiple purposes are achieved, meanwhile, the flexible lock chain is foldable, the flexible lock chain can be directly folded and stored in the storage box when locking is not needed, and the flexible lock chain is convenient to use. And the bicycle lock is easier to carry.