Catechism of the Catholic Church
1471 - The doctrine and practice of indulgences in the Church are closely linked to the effects of the sacrament of Penance.
What is an indulgence?
"An indulgence is a remission before God of the temporal punishment due to sins whose guilt has already been forgiven, which the faithful Christian who is duly disposed gains under certain prescribed conditions through the action of the Church which, as the minister of redemption, dispenses and applies with authority the treasury of the satisfactions of Christ and the saints."
"An indulgence is partial or plenary according as it removes either part or all of the temporal punishment due to sin." Indulgences may be applied to the living or the dead.
Obtaining indulgence from God through the Church
1478 - An indulgence is obtained through the Church who, by virtue of the power of binding and loosing granted her by Christ Jesus, intervenes in favor of individual Christians and opens for them the treasury of the merits of Christ and the saints to obtain from the Father of mercies the remission of the temporal punishments due for their sins. Thus the Church does not want simply to come to the aid of these Christians, but also to spur them to works of devotion, penance, and charity.
1479 - Since the faithful departed now being purified are also members of the same communion of saints, one way we can help them is to obtain indulgences for them, so that the temporal punishments due for their sins may be remitted.