A selection of photos from across the African continent this week:

A livestock trader waits for customers in Nigeria's city of Lagos on Sunday ahead of the Eid al-Adha festival when Muslims buy a ram to sacrifice, sharing the meat with those less fortunate...

The festival translates as the feast of sacrifice and marks God's gift of a ram as a substitute for Abraham's sacrifice of his son. Here a boy in Egypt's capital, Cairo, sells stuffed animals after dawn Eid prayers on Monday...

At the prayer ground in Lagos on the same day, a woman takes a selfie with friends...

More Eid selfies - this time by Kenyan men at the Dome of the Rock in Jerusalem

Supporters of Gabon's opposition leader Jean Ping, who is challenging the recent election results, hold up their hands smeared in white paint as a sign of peace in the capital, Libreville, on Saturday.

Ethiopians pray for demonstrators killed in recent protests at a service in the capital, Addis Ababa, on Sunday.

On the same day, girls pray at Mofolo Woyera church in the Malawian village of Mulele.

Members of Rwanda's sitting volleyball team listen to their national anthem ahead of a match against China at the Paralympics in Rio on Saturday.

Zimbabwe's first team of para-rowers competes in Rio on Sunday. None of them were rowers before this year, and they only had about three weeks to train before their first qualification event for Brazil.

Namibia's Ananias Shikongo and his guide Even Tjiviju run towards victory on Thursday in the 200m race for people with a visual impairment, becoming the country's first-ever male athlete to win a Paralympic gold.

A relative of an illegal gold miner waits near a shaft in the South African city of Johannesburg on Monday during a rescue operation to find people trapped underground. Three people died.

Cameroonian-born Samuel Awasum and his wife Jacinta Awusa Awasum are pictured after being presented as carnival prince and princess in the German town of Ratingen on Monday.

A Kenyan farmer harvests shoots of the herbal stimulant khat, which is popular in Somalia, from trees on his farm on Friday.

A woman dances during wedding celebrations in Somalia's capital, Mogadishu, in a photo released on Tuesday - part of a series by Reuters on Somali marriage ceremonies.

A muscle man competitor poses during a local bodybuilding championship in the Libyan city of Benghazi on Thursday.

And Egyptians enjoy riding on a banana boat in the northern resort of Marsa Matruh on Monday.
Images courtesy of AFP, AP, EPA and Reuters