San Franciscan Andrew Smith Hallidie patented the first cable car in January 1861. Most large American cities had one or more cable car lines by 1890.