A selection of the best photos from across Africa and beyond this week:
Sebnem Coskun/Getty Images
A fishmonger on the Tanzanian island of Zanzibar grimaces as a prepares the catch for sale at Friday's fish market in Stone Town...
Åebnem CoÅkun/Getty Images
But there are fears that fishing and other activities off the island's coast could damage the underwater ecosystem, being inspected by a diver on the same day.
Jalal Morchidi/EPA
A performer from the Moallem Houssem Ghina Ensemble leaps for the enjoyment of Friday's crowd at the Gnaoua World Music Festival in Morocco.
Luc Gnago/Reuters
In the Adjame suburb of Ivory Coast's main city, Abidjan, the Eid al-Adha festivities begin on Tuesday, the eve of the Muslim holiday.
Fadel Dawod/Getty Images
Egyptians enjoying the festivities on Wednesday got to take a picture with a gorilla that turned up at a mosque in the capital, Cairo.
AFP
In Wad Hamid, about 100km (60 miles) north of Sudan's capital, Khartoum, a man skins a sheep for an Eid feast, where people marked the festival despite the conflict...
Ibrahim Mohammed Ishak/Reuters
But the fighting, which began in April, has forced millions from their homes - including this boy seen on Wednesday at Eid prayers in the east of Sudan.
Kim Ludbrook/EPA
A worshipper has a contemplative moment at a mosque in the South African city of Johannesburg on Thursday, the second day of the Eid celebrations.
Cooper Inveen/Reuters
A Sierra Leonean who has just cast their vote in Saturday's general election gets their nail inked to show they have taken part...
John Wessels/AFP
Three days later, supporters of incumbent President Julius Maada Bio celebrate in Freetown after he was declared the winner of the presidential race - a result that the opposition is disputing.
Alexander Hassenstein/Getty Images
Kenya's Kennedy Munyao speeds round the streets of Germany's capital, Berlin, in a 10km cycling race on Sunday at the Special Olympics World Games - a competition for people with intellectual disabilities.
Rafalia Henitsoa/Getty Images
Madagascan soldiers march in formation on Monday in Antananarivo as part of events to mark the country's 63rd anniversary of independence.
Thomas Mukoya/Reuters
And Kenyan opposition leader Raila Odinga proves that he can still pull a crowd on Tuesday, calling for civil disobedience against the new tax increases that have been signed into law.