This question does not have a straightforward answer. The history of the automobile is very rich and dates back to the 15th century when Leonardo da Vinci was creating designs and models for transport vehicles.
There are many different types of automobiles - steam, electric, and gasoline - as well as countless styles. Exactly who invented the automobile is a matter of opinion. If we had to give credit to one inventor, it would probably be Karl Benz from Germany. Many suggest that he created the first true automobile in 1885/1886.