The Day of Atonement involved two goats selected for different purposes.
One goat was sacrificed as part of the purification rituals. The other remained alive and was brought before the high priest after the sanctuary had been cleansed.
Aaron placed both hands upon the head of the living goat and confessed over it the iniquities and transgressions of the Israelites. The goat was then sent into the wilderness, carrying away the sins symbolically placed upon it. This dramatic ritual illustrated the removal of the people's wrongdoing from the community.