A selection of the week's best photos from across the African continent and beyond:
GORDWIN ODHIAMBO / AFP
Kenyan ballet pupils rehearse before a show in Nairobi's Kibera neighbourhood on Wednesday.
BILLEL BENSALEM / GETTY IMAGES
On Friday an artist paints a mural of Olympic champion boxer Imane Khelif in her hometown of Tiaret, in south-western Algeria.
OLI SCARFF / AFP
On the same day at the Olympic Games in Paris, Julia Vincent represents South Africa in the women's three-metre springboard diving final.
OUPA BOPAPRE / GETTY IMAGES
The next day in Pretoria, former Miss South Africa Ndavi Nokeri takes to the red carpet ahead of this year's event...
FRENNIE SHIVAMBU / GETTY IMAGES
Mia le Roux was crowned the eventual winner of the competition after a controversial few weeks in which one contestant withdrew following a public backlash over her Nigerian roots.
RICCI SHRYOCK / AFP
On Monday a Simb performer wears face paint and a costume in Senegal's capital, Dakar...
The group stages events throughout the year, including wrestling matches and on Independence Day.
AKINTUNDE AKINLEYE / REUTERS
A worshipper brings offerings in a calabash to the Osun-Osogbo Sacred Grove in Osogbo, south-western Nigeria, on Friday...
The yearly Osun festival attracts devotees from far and wide.
EMMANUEL CROSET / AFP
The next day in South Africa near Johannesburg, a cosplayer takes part in a medieval fantasy fair.
MONIRUL BHUIYAN / AFP
Huge crowds greet Letsile Tebogo on Tuesday in Gaborone after the Botswana sprinter is crowned the world's fastest man over 200m at the Olympic Games.
SALVATORE DI NOLFI/EPA
As peace talks begin on Wednesday, Sudanese protestors in Switzerland call for an end to the civil war in their home country.
AHMED GAMAL / GETTY IMAGES
Workers harvest delicate jasmine petals near the Nile delta in Egypt on Sunday.
AHMED MOSAAD / GETTY IMAGES
And in the same country days later, a man plays with a laser as people look to the night sky for a view of the Milky Way.
Getty Images/BBC