Tazkia E Nafs
The short answer is, by following the injunctions of God. For details please refer to the book on this topic by Amin Ahasn Islahi sahab: Discussion 25704