The chain interacts with several different components on your bike. The chain is wrapped around the chainring and crankset up front and the cassette on the rear. If you have multiple gears on your cassette, then your chain will move from one gear to the other via the rear derailleur. Some bikes will even have a front derailleur.