Why did King Herod want to know when and where Jesus was born?

King Herod had heard that another King was born; and since there could only be one king he though Jesus had come to depose him. So he wanted to kill Jesus before Jesus could take the kingdom away from him.