The first mechanical computer was invented by Charles Babbage in the year 1822
In 1822 he began conceptualizing and building the Difference Engine. this machine is to be considered to be the first automatic computing machine. the difference was capable of computing several sets of numbers.
Unfortunately because of funding this machine was not completed