Tic/twitch - how does it work?

Hello! I have some questions: how does a tic work? What's happening in our body when a tic is acting? Can a tic be considered a reflex? Why?