1825, "underground passage" (for water pipes or pedestrians, later for electrical wires), from sub- + way (n.). The sense of "underground railway in a city" is first recorded 1892, in reference to London.