Sometime after the creation of Adam and Eve on the sixth day of creation, see Genesis 1:26-31, they rebelled against God by eating the fruit of the tree of the knowledge of good and evil.
By doing so they brought sin into the world and upon all of humanity. The details of this are in Genesis 3:1-24.
“And if his offering is of the flocks – of the sheep or of the goats – as a burnt sacrifice, he shall bring a male without blemish. He shall kill it on the north side of the altar before the Lord; and the priests, Aaron’s sons, shall sprinkle its blood all around on the altar.” Leviticus 1:10-11.
“Brethren, if a man is overtaken in any trespass, you who are spiritual restore such a one in a spirit of gentleness, considering yourself lest you also be tempted.” Galatians 6:1.
“Hear the word of the Lord, you children of Israel, for the Lord brings a charge against the inhabitants of the land: ‘There is no truth or mercy or knowledge of God in the land. By swearing and lying, killing and stealing and committing adultery, they break all restraint, with bloodshed after bloodshed.’” Hosea 4:1-2.