Crowds of Muslim pilgrims are performing the final rituals of the annual hajj pilgrimage, stoning symbols of the devil and circling the Kaaba — Islam's holiest site — located in Mecca, Saudi Arabia.

A Muslim child pilgrim prays after a ritual called Jamarat, the last rite of the annual hajj, in Mina near the Saudi holy city of Mecca. The annual Islamic pilgrimage is the largest yearly gathering of people in the world.A Muslim child pilgrim prays after a ritual called Jamarat, the last rite of the annual hajj, in Mina near the Saudi holy city of Mecca. The annual Islamic pilgrimage is the largest yearly gathering of people in the world. (Hassan Ammar/Associated Press)

Some 2.8 million Muslims from all over the world were participating in the pilgrimage this year, and many are finishing the rites on Thursday.

The pilgrims walked seven times around the Kaaba, a cube-shaped shrine in Mecca, in what is known as the "farewell" circumambulation.

Others were in the desert valley of Mina, several miles away, throwing stones at three walls representing Satan in a symbolic rejection of temptation, a ceremony that has been going on since Tuesday.

While many pilgrims complete their hajj Thursday, some will continue for another day of stoning.