When you need to leave a place or situation, you may say that you "had to go". However, there are many other phrases and idioms that can be used to convey the same message. For example, "had to leave", "needed to depart", "had to head out", or "had to take off". Other options include "had to hit the road", "had to get going", "needed to make tracks", or "had to say goodbye". Depending on the context and level of formality, there are countless ways to express the need to leave, each with its own connotations and nuances.