"construction in which rails form an important part," early 15c., verbal noun from rail (v.2). Technically, railings (late 15c.) are horizontal, palings are vertical.
rah
Rahab
raid
raider
rail
railing
raillery
railroad
railroading
rail-splitter
railway