A selection of the week's best photos from across the African continent:
HELLE ARENSBAK/AFP
Nigerian singer-songwriter Tems takes to the stage at Denmark's Roskilde music festival on Saturday.
RAJESH JANTILAL/AFP
On the same day in Durban, South Africa, flamboyant fashion reigns at the races...
The city hosts a yearly horse racing event that also features local designers...
ROGAN WARD/REUTERS
Many outfits this year featured a clash of colours...
And large headgear was de rigeur.
AHMAD HASABALLAH/GETTY IMAGES
In the Egyptian capital, Cairo, Sufi Muslims celebrate the Islamic New Year on Sunday.
KHALED DESOUKI/AFP
In the same city on Wednesday, a craftsman shapes a fez - or tarboosh - using a mould.
MICHELE CATTANI/AFP
A seller of second-hand car parts sits in his workshop in Nouakchott, Mauritania, on Monday.
HAMZA ZAIT/GETTY IMAGES
On Saturday, riders charge and fire muskets at an independence day event in Algeria's capital, Algiers.
VINCENT THIAN/GETTY IMAGES
Umaro Sissoco Embalo, the president of Guinea-Bissau, inspects troops on a visit to China on Wednesday.
GEOFFROY VAN DER HASSELT/AFP
Kenyan runner Faith Kipyegon breaks her own world record in the women's 1,500m race at a Diamond League event in France on Sunday.
PEERAPON BOONYAKIAT/GETTY IMAGES
The same day in Thailand, Nigeria's Quadri Aruna competes at the World Table Tennis Star Contender Bangkok 2024.
TIM DE WAELE/GETTY IMAGES
Biniam Girmay is back in the saddle on Sunday after winning stage eight of the Tour de France the previous day. The Eritrean cyclist said of an earlier stage win, "I never cry, but inside I am - I just have no words."
Farmers pick prickly pears in northern Egypt on Friday.
GUILLEM SARTORIO/AFP
Diane Rwigara poses for a portrait at her home in Kigali. The staunch critic of President Paul Kagame is barred from running in Monday's election, and was imprisoned for over a year on insurrection charges before being acquitted.
MAHMUD TURKIA/AFP
And on Friday, people paddle boats on an artificial lake in the Libyan capital, Tripoli.
Getty Images/BBC