In 1817 and in 1818, France and Germany both claimed they had come up with the first mechanism for a bike. It was a piece of wood with a wheel at one end and a wheel at the other, and you walked it along. In England, they called it a dandy horse.
Source: wiktionary
Because these riders preferred smooth pavements to rough roads, they tended to travel on pavements and on park footpaths, where inevitable collisions with pedestrians resulted in such practices being outlawed. The dandy horse went out of fashion nearly as quickly as it came in.
Source: wiktionary