Andrew Hallidie introduced the cable car to San Francisco after witnessing a horse and carriage accident.
Source
More: Andrew Smith Hallidie