Group D of the 2017 Africa Cup of Nations was played from 17 to 25 January 2017 in Gabon. The group consisted of Ghana, Mali, Egypt, and Uganda.
Egypt and Ghana advanced to the round of 16 as the top two teams.
In the quarter-finals:
All times are local, WAT ().
<section begin=Match 7 /><section end=Match 7 />
<section begin=Match 8 /><section end=Match 8 />
<section begin=Match 15 /><section end=Match 15 />
<section begin=Match 16 /><section end=Match 16 />
<section begin=Match 23 /><section end=Match 23 />
<section begin=Match 24 /><section end=Match 24 />