1812 in modern sense, from rail (n.1) + way (n.). Earlier used of any sort of road on which rails (originally wooden) were laid for easier transport (1776).
railing
raillery
railroad
railroading
rail-splitter
railway
raiment
rain
rain forest
rainbow
raincheck