It's used in compound tenses like the perfect tenses (present perfect, past perfect, future perfect) and in passive voice constructions.
Here are some examples:
* He jugado al fútbol. (I have played soccer)
* Habíamos jugado a las cartas. (We had played cards)
* La pelota ha sido jugada. (The ball has been played)