The verb "avoir" is almost always used as an auxiliary for the present perfect/passé composé. However, when the main verb indicates movement or when it's reflexif (uses a "se") we use the verb "être" as an auxiliary.These verbs can be those like entrer, sortir, partir, venir, s'habiller, se casser...