The electric car was invented in 1828 by a scientist named Robert Anderson. He was the first person to use an electric motor to power a vehicle. He used a battery to store electricity, connecting it to the motor, which then turned the wheels of the vehicle. At the time, it was considered an experiment and no one else was able to replicate it. It wasn't until the late 1800s that electric cars began to be widely used.