 In 1857 the Olten-Bern railway built a station in Roggwil.This was followed by the narrow-gauge Langenthal-Roggwil-Melchnau line in 1917.The railroad promoted industrialization in the formerly agrarian village.