Around 2.5 million pilgrims took part in a symbolic stoning of the devil on Saturday, marking the final days of the hajj pilgrimage in Saudi Arabia and the start of the Eid al-Adha celebrations for Muslims around the world.
To mark the completion of the hajj, male pilgrims shave their hair and women trim theirs to represent a spiritual renewal and rebirth. Male pilgrims will also remove the white terrycloth garments worn on the hajj and return to their usual attire.
The five-day hajj pilgrimage is required of all Muslims once in their lifetime, if they are financially and physically able to make the journey.
Muslims around the world commemorate the end of hajj with Eid celebrations, including distributing meat to the poor.
"I came from Sudan to Mecca where I performed the pilgrimage," Mohammed Saleh said as he performed the final rites of hajj in Mina. "We hope all pilgrims will be successful in their hajj."
Others too expressed a sense of gratitude to have performed the hajj.
Saudi Arabia said 1.85 million pilgrims from more than 160 different countries traveled to the kingdom for the hajj this year. Another 634,000 joined from within Saudi Arabia, nearly 70 percent of them non-Saudi residents of the kingdom.
The hajj is one of the largest religious gatherings on earth and a massive logistical challenge for the Saudi government to oversee each year. The kingdom provides pilgrims with health care and buses for transportation, as well as meals, snacks and water along the routes of hajj.
Mina is a sprawling valley near Mecca where thousands of air-conditioned tents are erected to house pilgrims for the final leg of the hajj. Because of the narrow roads between tents, it is also where the deadliest hajj disasters have occurred, including a 2015 stampede and crush that killed more than 2,400 people. The Saudi government has since widened roads and monitors the flow of people and crowds with tens of thousands of soldiers, guards, policemen and cameras.
Saudi media reported King Salman visited Mina on Sunday to supervise the services provided during the hajj. He included among his guests for the hajj this year 200 survivors and relatives of victims of the mosque attacks in New Zealand, where a gunman opened fire and killed 51 people in March.
While following a route the Prophet Muhammad once walked, Muslims trace the rites of hajj back to the prophets Ibrahim and Ismail, or Abraham and Ishmael as they are named in the Bible.
It is in Mina where Muslims believe Ibrahim's faith was tested when God commanded him to sacrifice his only son Ismail. Ibrahim was prepared to submit to the command, but then God stayed his hand, sparing his son. In the Christian and Jewish version of the story, Abraham is ordered to kill his other son, Isaac.
In Mina, pilgrims walk long distances on pedestrian-only streets toward a multi-story complex housing large pillars. There, they cast seven pebbles each at three pillars in a ritual meant to symbolize the casting away of evil and sin.
Muslims believe the hajj offers the chance of atonement and an opportunity to erase past sins. The first two days of the hajj are spent in Mecca and other areas around it in deep prayer, contemplation and worship.