The crankset, or chainset, is the component of a bicycle drivetrain that converts the reciprocating motion of the rider's legs into rotational motion used to drive the chain, which in turn drives the rear wheel. It consists of one or more chainrings attached to the crank arms, which attach the pedals to the crank. It is connected to the rider by the pedals, to the bicycle frame by the bottom bracket, and to the rear sprocket, cassette or freewheel via the chain.