Repentance is a very important wholesome practice in Buddhism. It is a major and intensified effort to correct mistakes done in the past and cultivate dharma towards Buddhahood in the future as well as to help people stay away from bad deeds.