The Vision of St. Thomas Aquinas by Santi di Tito, 1593
From the Summa Theologica of St. Thomas Aquinas:
II, 2, Q 147, Art 1
Fasting is practiced for a threefold purpose:
First, in order to bridle the lusts of the flesh, wherefore the Apostle says (2 Corinthians 6:5-6): "In fasting, in chastity," since fasting is the guardian of chastity. For, according to Jerome, "Venus is cold when Ceres and Bacchus are not there," that is to say, lust is cooled by abstinence in meat and drink.
Secondly, we have recourse to fasting in order that the mind may arise more freely to the contemplation of heavenly things: hence it is related (Daniel 10) of Daniel that he received a revelation from God after fasting for three weeks.
Thirdly, in order to satisfy for sins: wherefore it is written (Joel 2:12): "Be converted to Me with all your heart, in fasting and in weeping and in mourning." The same is declared by Augustine in a sermon: "Fasting cleanses the soul, raises the mind, subjects one's flesh to the spirit, renders the heart contrite and humble, scatters the clouds of concupiscence, quenches the fire of lust, kindles the true light of chastity."