A bicycle locking system for being mounted in a bicycle, the locking system comprising: an axle extending in a longitudinal direction, said axle being rotatable around its longitudinal axis; a first locking element and a second locking element configured for locking engagement with each other, said first locking element being fixed to the axle and each of the first and second locking elements (30,20) comprising an engagement surface (31, 21), said engagement surfaces (31, 21) comprising mutually corresponding protrusions (32, 22) and cavities (33, 23), wherein the first and second locking elements (30, 20) are arranged at the axle with the engagement surfaces (31, 21) facing each other, and wherein the first and second locking elements (30, 20) are displaceable in relation to each other along the longitudinal axis so that the first and second locking elements (30, 20) are movable between an engaged state and a disengaged state, wherein, in the engaged state where the first and second locking elements (30, 20) are in locking engagement with each other, the first locking element is in an angular position, where the protrusions (32, 22) are aligned with the corresponding cavities (33, 23), and the first and second locking elements (30, 20) are in a position in the longitudinal direction in relation to each other so that the protrusions (32, 22) are accommodated in the cavities (33, 23), and wherein, in the disengaged state, the first and second locking elements (30, 20) are distanced from each other in the longitudinal direction so that the protrusions (32, 22) are not accommodated in the corresponding cavities (33, 23), wherein the locking system further comprises a biasing device and an actuation element, said biasing device being configured for exerting a force on the second locking element in the longitudinal direction, so as to displace the first and second locking elements (30, 20) in relation to each other, where the biasing device is a magnetic biasing device, and said actuation element acting to switch the locking system between a state where the biasing device magnetically repels the second locking element and a state where the biasing device magnetically attracts the second locking element, and characterised in that the actuation element physically moves the biasing device. an axle extending in a longitudinal direction, said axle being rotatable around its longitudinal axis; a first locking element and a second locking element configured for locking engagement with each other, said first locking element being fixed to the axle and each of the first and second locking elements (30,20) comprising an engagement surface (31, 21), said engagement surfaces (31, 21) comprising mutually corresponding protrusions (32, 22) and cavities (33, 23), wherein the first and second locking elements (30, 20) are arranged at the axle with the engagement surfaces (31, 21) facing each other, and wherein the first and second locking elements (30, 20) are displaceable in relation to each other along the longitudinal axis so that the first and second locking elements (30, 20) are movable between an engaged state and a disengaged state, wherein, in the engaged state where the first and second locking elements (30, 20) are in locking engagement with each other, the first locking element is in an angular position, where the protrusions (32, 22) are aligned with the corresponding cavities (33, 23), and the first and second locking elements (30, 20) are in a position in the longitudinal direction in relation to each other so that the protrusions (32, 22) are accommodated in the cavities (33, 23), and wherein, in the disengaged state, the first and second locking elements (30, 20) are distanced from each other in the longitudinal direction so that the protrusions (32, 22) are not accommodated in the corresponding cavities (33, 23), wherein the locking system further comprises a biasing device and an actuation element, said biasing device being configured for exerting a force on the second locking element in the longitudinal direction, so as to displace the first and second locking elements (30, 20) in relation to each other, where the biasing device is a magnetic biasing device, and said actuation element acting to switch the locking system between a state where the biasing device magnetically repels the second locking element and a state where the biasing device magnetically attracts the second locking element, and characterised in that the actuation element physically moves the biasing device.