Sin (Sanskrit: पाप pāpa "vice") describes actions that create negative karma by violating moral and ethical codes, which automatically brings negative consequences.
Sri Krishna says in Gita about 3 major emotions, which result in sin.
ध्यायतो विषयान्पुंसः सङ्गस्तेषूपजायते।
सङ्गात् संजायते कामः कामात्क्रोधोऽभिजायते।।2.62।।
In the case of a person who dwells on objects, there arises attachment
for them. From attachment grows hankering (strong desire), from
hankering springs anger.
क्रोधाद्भवति संमोहः संमोहात्स्मृतिविभ्रमः।
स्मृतिभ्रंशाद् बुद्धिनाशो बुद्धिनाशात्प्रणश्यति।।2.63।।
From anger follows delusion; from delusion, failure of memory; from
failure of memory, the loss of understanding; from the loss of
understanding, he perishes.
The root cause of all types of emotions, which give rise to negative actions, finally causing fall, is 3 major emotions- attachment, desire and anger/sins.
Meditation/reciting sacred mantra or name, etc, of Shiva, Vishnu, Shakti, etc, or on/of formless God, will eliminate these 3 sins.