A selection of the best photos from the African continent and beyond.

image sourceReutersimage captionCape Verde's rhythmic gymnast Marcia Alves Lopes performs her routine with clubs at the Olympics on Friday.image sourceAFPimage captionOn Sunday, the drum major of a marching band throws his mace at a rally in Ethiopia's capital, Addis Ababa…image sourceAFPimage captionHorse riders holding Ethiopian flags trot in for the gathering in the city centre…image sourceReutersimage captionThis man attends the event, which was in support of the army in its fight against forces from the northern region of Tigray, in traditional Oromo dress…image sourceAFPimage captionThe nine-month conflict has forced millions of Ethiopians from their homes – many to Sudan. These refugees, pictured on Tuesday having haircuts, are from the minority Qemant group in Amhara, which neighbours Tigray.image sourceGetty Imagesimage captionCrowds gather to see Minni Minawi appointed governor of Sudan's Darfur region on Wednesday…image sourceGetty Imagesimage captionLt-Gen Abdel Fattah Abdelrahman Burhan (L) who heads the country's Sovereign Council, attends the ceremony – holding the hand of Mr Minawi, a former rebel leader, aloft…image sourceGetty Imagesimage captionMr Minawi signed a peace deal on behalf of the Sudan Liberation Movement (SLM) with the new transitional government last year. Some SLM fighters also attend the inauguration…image sourceGetty Imagesimage captionOther people climb a tree to get a better view of the new governor…image sourceGetty Imagesimage captionA wildfire illuminates the night sky in Metline, a coastal area of northern Tunisia, on Tuesday. Communities have been battling to put out fires that have also affected neighbouring Algeria…image sourceAFPimage captionRecord temperatures were also recorded in Tunisia's Mediterranean cities on Tuesday – with people flocking to the sea to cool off.image sourceGetty Imagesimage captionAn Egyptian artistic swimmer prepares to launch into a dive during her team's routine on Saturday at the Olympics in Tokyo…image sourceAFPimage captionOn the same day, Kenya's Peres Jepchirchir wins the women's Olympic marathon…image sourceGetty Imagesimage captionHer compatriot Eliud Kipchoge wins the men's marathon the next day. The 36-year-old Kenyan became the third person to win successive Olympic marathons.image sourceReutersimage captionOn Tuesday, an elephant calf is seen crossing a road in Kenya's Amboseli National Park.image sourceAFPimage captionLibyans feed pigeons in Martyrs Square in the centre of the capital, Tripoli, on Saturday.image sourceAFPimage captionMembers of the world-famous Ivorian music group Magic System are filmed atop cars in a neighbourhood in Abidjan on Sunday…image sourceAFPimage captionA car wash attendant in Zambia's capital, Lusaka, falls asleep on Tuesday – missing out on using one of the mattresses piled up on a truck behind him.image sourceAFPimage captionTwo days later, the silhouettes of people queueing up early to vote in elections are seen on a wall near a polling station in Lusaka.image sourceAFPimage captionAnd Nigerian footballer Kelechi Iheanacho celebrates after his team Leicester City wins the Community Shield at Wembley on Saturday. The Foxes' victory over Manchester City was thanks to his late penalty, 11 minutes after he came on as a substitute.

All pictures subject to copyright.