Holy Communion cures the spiritual diseases of the soul by cleansing it of venial sins and the temporal punishment due to sin. No less than serving as an antidote to protect the soul from mortal sins, Communion is "an antidote by which we are freed from our daily venial sins" (Council of Trent, October 11, 1551). The remission of venial sins and of the temporal sufferings due to sin takes place immediately by reason of the acts of perfect love of God, which are awakened by the reception of the Eucharist. The extent of this remission depends on the intensity of our charity when receiving Communion.
So that's Church law, Catechism, teaching, and two councils.