When sin enters into our lives it brings darkness.
Confession of sin helps us move away from evil, allowing the Light of JESUS to reveal the proper path.
Tell GOD your sins, ask for forgiveness and he promises HIS LIGHT, which frees us from the darkness.
1st JOHN 1:9