The first computer bug was actually a real bug. In 1947, a team of engineers at Harvard University were working on a computer called the Mark II. They found that the machine was not working properly. They eventually discovered that a moth had gotten stuck in one of the relays, which was causing the problem. This is where the term "bug" came from.