The world's first railways, built in the early 19th century, were designed primarily to transport coal from mines to canals or ports. Steam locomotives hauled heavy mineral loads long before passenger service became common.