
The second factor of the path is called in Pali samma sankappa, which we will translate as "right intention." The term is sometimes translated as "right thought," a rendering that can be accepted if we add the proviso that in the present context the word "thought" refers specifically to the purposive or conative aspect of mental activity, the cognitive aspect being covered by the first factor, right view. It would be artificial, however, to insist too strongly on the division between these two functions.
From the Buddhist perspective, the cognitive and purposive sides of the mind do not remain isolated in separate compartments but intertwine and interact in close correlation. Emotional predilections influence views, and views determine predilections. Thus a penetrating view of the nature of existence, gained through deep reflection and validated through investigation, brings with it a restructuring of values which sets the mind moving towards goals commensurate with the new vision. The application of mind needed to achieve those goals is what is meant by right intention.

The Buddha discovered this twofold division of thought in the period prior to his Enlightenment (see MN 19). While he was striving for deliverance, meditating in the forest, he found that his thoughts could be distributed into two different classes. In one he put thoughts of desire, ill will, and harmfulness, in the other thoughts of renunciation, good will, and harmlessness.
Whenever he noticed thoughts of the first kind arise in him, he understood that those thoughts lead to harm for oneself and others, obstruct wisdom, and lead away from Nibbana. Reflecting in this way he expelled such thoughts from his mind and brought them to an end. But whenever thoughts of the second kind arose, he understood those thoughts to be beneficial, conducive to the growth of wisdom, aids to the attainment of Nibbana. Thus he strengthened those thoughts and brought them to completion.

Thus one who denies the moral efficacy of action and measures achievement in terms of gain and status will aspire to nothing but gain and status, using whatever means he can to acquire them. When such pursuits become widespread, the result is suffering, the tremendous suffering of individuals, social groups, and nations out to gain wealth, position, and power without regard for consequences. The cause for the endless competition, conflict, injustice, and oppression does not lie outside the mind. These are all just manifestations of intentions, outcroppings of thoughts driven by greed, by hatred, by delusion.

Since the most important formulation of right view is the understanding of the Four Noble Truths, it follows that this view should be in some way determinative of the content of right intention. This we find to be in fact the case. Understanding the four truths in relation to one's own life gives rise to the intention of renunciation; understanding them in relation to other beings gives rise to the other two right intentions.
When we see how our own lives are pervaded by dukkha, and how this dukkha derives from craving, the mind inclines to renunciation — to abandoning craving and the objects to which it binds us. Then, when we apply the truths in an analogous way to other living beings, the contemplation nurtures the growth of good will and harmlessness.
We see that, like ourselves, all other living beings want to be happy, and again that like ourselves they are subject to suffering. The consideration that all beings seek happiness causes thoughts of good will to arise — the loving wish that they be well, happy, and peaceful. The consideration that beings are exposed to suffering causes thoughts of harmlessness to arise — the compassionate wish that they be free from suffering.

The complete eradication of delusion will only take place when right view is developed to the stage of full realization, but every flickering of correct understanding contributes to its eventual destruction. The other two roots, being emotive defilements, require opposition through the redirecting of intention, and thus meet their antidotes in thoughts of renunciation, good will, and harmlessness.
Since greed and aversion are deeply grounded, they do not yield easily; however, the work of overcoming them is not impossible if an effective strategy is employed. The path devised by the Buddha makes use of an indirect approach: it proceeds by tackling the thoughts to which these defilements give rise. Greed and aversion surface in the form of thoughts, and thus can be eroded by a process of "thought substitution," by replacing them with the thoughts opposed to them.
The intention of renunciation provides the remedy to greed. Greed comes to manifestation in thoughts of desire — as sensual, acquisitive, and possessive thoughts. Thoughts of renunciation spring from the wholesome root of non-greed, which they activate whenever they are cultivated. Since contrary thoughts cannot coexist, when thoughts of renunciation are roused, they dislodge thoughts of desire, thus causing non-greed to replace greed.
Similarly, the intentions of good will and harmlessness offer the antidote to aversion. Aversion comes to manifestation either in thoughts of ill will — as angry, hostile, or resentful thoughts; or in thoughts of harming — as the impulses to cruelty, aggression, and destruction. Thoughts of good will counter the former outflow of aversion, thoughts of harmlessness the latter outflow, in this way excising the unwholesome root of aversion itself.