Infinitives are used throughout the French language.
The most common use of the perfect infinitive is to say ‘after having done’ something. Après avoir fait mes devoirs, j’ai regardé la télé. – After having done/After doing my homework, I watched TV.