What does redemption mean?

Redemption should be a religious word, which means that a person once had a low moral level and did many bad things, but it was not illegal. Later, under the influence of external factors, he became positive and kind, so he redoubled his efforts to do good deeds, make up for his previous mistakes, and save his lost heart and' sin'-atonement.