As you engage your mind in the scriptures, your mind will become pure.
The scriptures recommend love and service to the enlightened to develop purity.