The first alarm clock was invented by a Greek engineer named Ctesibius in the 3rd century BC. His alarm clock was a water clock that would release a ball into a container when a certain amount of time had passed, creating a noise that would wake the sleeper. This mechanism was also used in ancient China and ancient Rome, where they used water clocks to announce the hours of the day. The first mechanical alarm clock was invented in the 15th century by a German clockmaker named Peter Henlein, who used a spring-driven mechanism to trigger an alarm bell.