​The quarter-finals of the Africa Cup of Nations kicked off on Wednesday and there was no shortage of drama as both Senegal and Nigeria booked their spots in the final four.


VAR was introduced to proceedings for the first time in the tournament and, surprise, surprise, it played a part in both games - even leading to a pivotal goal in one instance.


Aside from that, there was plenty of the same drama we have come to expect from AFCON, with last-minute goals, red cards, and suspect goalkeeping all on show.


Here's a look what happened in the first quarter-final clashes on Wednesday.


Senegal 1-0 Benin

FBL-AFR-2019-MATCH45-SEN-BEN

Benin caused one of the biggest upsets of the tournament when they scraped past early favourites Morocco in the round of 16, and they were rewarded with an equally difficult matchup against Senegal.


The Lions are yet to hit their best form, but they were clearly the better team in this one, pinning Benin deep into their own half. ​Sadio Mane managed to find the back of the net twice, but both strikes were eventually ruled out for offside following VAR reviews.

FBL-AFR-2019-MATCH45-SEN-BEN

Despite dominating, Senegal almost found themselves behind midway through the second half when goalkeeper Alfred Gomis misplaced a pass, almost directing it behind him and into his vacant net - only to see it dribble wide of the post.


That scare jolted Senegal back into life and they were able to finally open the scoring with 20 minutes left on the clock. Mane teed up Idrissa Gueye and the ​Everton midfielder confidently fired home to send his side into the AFCON semi-finals for the first time. Benin's misfortune continued as Olivier Verdon was sent off during the closing exchanges.


Nigeria 2-1 South Africa

FBL-AFR-2019-MATCH48-NGA-RSA

Much like Benin, South Africa upset the odds in the last round, defeating hosts Egypt to book their place in the quarter-finals.


Nigeria - who previously edged past reigning champions Cameroon - stood in their way and the Super Eagles looked up to the task from the off. The impressive Samuel Chukwueze opened the scoring in the first half, finding the back of the net at the second attempt following a cross from Ahmed Musa.

FBL-AFR-2019-MATCH48-NGA-RSA

Undeterred, South Africa managed to remain in contention and they found an equaliser after 70 minutes through Bongani Zungu, who initially appeared to be offside. However, a VAR review found that the ball had come off a Nigerian player on its way through, meaning the goal was allowed to stand.


The game appeared to be heading for extra time, before there was one final twist in the tale. South Africa keeper Ronwen Williams completely misjudged a Nigerian corner in the final minute of normal time, which allowed William Troost-Ekong to bundle the ball home into an empty net.