You use the gerund (werkwoord + ing)…
…after certain verbs: enjoy, discuss, dislike, finish, keep, give up, go on, mind, avoid, fancy, finish, keep, quit, suggest.
We have to avoid being caught by the police.
Do you mind watching that movie tonight?
You need to quit bullying your little brother!