Bicycle infantry are infantry soldiers who maneuver on (or, more often, between) battlefields using military bicycles in a form of foot drill called bike drill. The term dates from the late 19th century, when the “safety bicycle” became popular in Europe, the United States, and Australia. Historically, bicycles lessened the need for horses, fuel and vehicle maintenance. Though their use has waned over the years in many armies, they continue to be used in unconventional armies such as militias.
The use of the cycle as an infantry transport tool continued into the 21st century with the Swiss Army’s Bicycle Regiment, which maintained drills for infantry movement and attack until 2001, when the decision was made to phase the unit out.
Read more here at Wikipedia