The cable car was conceived after Andrew Smith Hallidie, an immigrant from England, witnessed an accident involving a horse-drawn buggy trying to climb a steep San Francisco hill and failing.