Answer:
Nicolas Joseph or Karl Benz
Step-by-step explanation:
Technically it was Nicolas Joseph. He began experimenting in 1765 working with models of steam engine powered vehicles for the french army which was for transporting cannons. In 1769 it was actually made of use.
But if you are talking about the guy who invented the first automobile with an internal combustion engine then Karl Benz is your guy. It was invented in 1885 and patented in 1886.
I hoped this helped :)