A selection of the week's best photos from across the continent and beyond:
Winston Duke/Getty Images
Stars Lupita Nyong'o, Tenoch Huerta, Danai Gurira and Winston Duke share a moment at the Wakanda Forever film premiere in Nigeria on Sunday...
AFP
Fans have their faces painted with patterns inspired by the film beforehand.
AFP
Algerian actress Sofia Boutella takes to the red carpet at an event at the Los Angeles County Museum of Art on Saturday.
Reuters
On the same day in South Africa, a marching band parades ahead of the Red Bull Box Cart Race...
Reuters
The competition in Cape Town sees contestants ride homemade vehicles, not all of which make it to the finish line.
AFP
Counsellor "Gogo" Shery Ziwakayi, right, gives a free counselling session on the Friendship Bench. The idea came from psychiatry Professor Dixon Chibanda, and the World Health Organization is now taking it to Qatar for the football World Cup.
AFP
On Friday, a ballerina training at the Grande Theatre of Dakar in Senegal stands near a portrait of Russian ballet teacher Agrippina Vaganova.
Getty Images
This man crafts a bird figurine from ebony in the Gabe Bazaar in Khartoum, Sudan, on Saturday.
Getty Images
A day earlier, the capital plays host to a shooting championship...
Getty Images
These markswomen are taking part in the shotgun category.
Getty Images
Esperance Sportive Tunis fans wave flares at the Tunisia championship match against Union Sportive Tataouine on Saturday.
Getty Images
"Politicians, when you stand up to talk, my generation requests that you speak like there is an emergency," Uganda's Leah Namugerwa says in her keynote speech at COP27...
Getty Images
Campaigners are in Egypt to lobby governments and policymakers to act on the climate crisis, which is disproportionately affecting the world's poorest countries.
Getty Images
Away from the conference centres and hotels, life goes on in Egypt. This woman is growing a variety of plants on her balcony using recycled plastic bottles.
Getty Images
"You might as well kill me" is the slogan of Ghanaian protesters rallying against the country's cost-of-living crisis.
Getty Images
Seun Kuti, son of Nigerian great Fela, peforms at the Villanos Del Jazz music festival in Spain on Monday.
EPA
A boy in the Nigerian city of Lagos gets a new prosthetic leg, at the Irede Prosthetic Centre on Monday.
AFP
Also on Monday, hundreds of volunteers enlist in the Democratic Republic of Congo army, after the country's president called on "vigilance groups" to protect against neighbouring Rwanda.
AFP
The day before, memorabilia marking Paul Biya's four decades in power is on sale in Cameroon. The 89-year-old, who is Africa's oldest president, did not attend the anniversary celebrations.
AFP
People take part in an anti-blasphemy protest in Bamako, Mali, on Friday after a video of a man insulting the Koran is widely circulated online.
Reuters
Kenya's Sharon Lokedi celebrates after winning the elite women's race at the New York marathon on Saturday.
Reuters
Kenyan activist Elizabeth Wathuti visits the Nairobi Arboretum on Tuesday.
EPA
On Wednesday a farmer prepares the land as maize-planting season begins in Zimbabwe.
Reuters
As Kenya battles worsening drought, these elephants drink at a solar-powered water point in Taita Taveta county.
Reuters
And on Wednesday, King Charles greets Nigerian President Muhammadu Buhari at Buckingham Palace in London.