Kirkpatrick Macmillan, a Scottish blacksmith, is credited with inventing the first pedal-driven bicycle in 1839. His design added a mechanism to propel the bicycle through pedals connected to the rear wheel, a key innovation over earlier hobby-horses.