Riders choose for themselves between slick tyres, for a dry track, and rain tyres, for a wet track. Each rider decides on the grid, based on the weather.
Slicks have no grooves and give the best grip on a dry track. Rain tyres have grooves that push water away.
A wrong choice can cost many seconds per lap, so tyre choice is a big tactical decision.
A white flag means it is raining on the track. Riders may come into the pits to swap to a bike with a wet-weather setup.
The flag is shown to all riders when rain starts to fall, after the Race Direction decides the track is wet.
Riders then change bikes in the pits to the one with rain tyres. This is called a flag-to-flag race.
Race Direction can declare a race wet before the start. Then riders may change tyres until the pit lane closes.
A wet race may be started behind the safety car in some cases, if conditions are too dangerous.