The Catholic Sacrament of Anointing of the Sick, formerly known as Last Rites or Extreme Unction, is a ritual of healing appropriate not only for physical but also for mental and spiritual sickness.
As to Anointing by conferring the Holy Spirit completes the sacrament of baptism, so extreme unction is the complement and completion of penance. Penance restores the justification lost by sin, extreme unction takes away the infirmity left by sin; it 'removes that state which might be an obstacle to the clothing with glory of the resurrection'; and, as every sacrament makes us men in some respect like Christ, 'so we become by extreme unction like the risen Christ because it will be given to the dying as a sign of the glory to come in which everything mortal will be stripped from the elect' (Albertus Magnus). According to the teaching of great theologians, the holy anointing makes the man who stands at the threshold of eternity and loyally cooperates with the grace of the sacrament ready to enter directly upon the Beatific Vision.
To learn more about Anointing of the Sick, according to the Catechism of the Catholic Church, click here.