The first computer was invented on the 15 February 1946 by John Mauchly and J. Presper Eckert. However the first mechanical computer was invented in 1822 by Charles Babbage although it doesn't resemble what we use as a "computer" today. Hope I help! :D