If you mean mechanical clocks, the first ones were made in Medieval monasteries to keep track of prayer times.