Just before kick-off in the last round of fixtures in the Championship, it looked like only Cardiff or Swansea would reach the play-offs.
However, on a night of drama both teams kept their hopes of promotion to the Premier League alive, finishing in the top six.
Cardiff were in pole position to clinch a play-off place and they went on to comfortably beat Hull City at home 3-0. That meant that Swansea had to beat Reading and hope that Nottingham Forest lost heavily at home to Stoke.
Swansea needed a six-goal swing to secure the final sixth position and with their 4-1 victory and Forest's 4-1 home defeat they maintained their Premier League dream.
Here is how both teams and the players celebrated on social media following the games.
Swansea captain Matt Grimes posted a picture of the team on Twitter, other players also posted similar messages.
Former Swansea player Lee Trundle also congratulated the team on their achievements.
The Swansea official Twitter page also posted a picture of the squad celebrating at the final whistle.
Further along the coast, Cardiff fans and players were also celebrating as they sealed their place in the top six.
Forward Junior Hoilett posted an encouraging message for his team mates as they enter the play-offs.
Both teams could meet each other in the play-off final with a a place in the Premier League up for grabs in the potential show down.
Our Sports Reporter Beth Fisher had said that the Championship season had one final twist before the last round of games.
Cardiff City will play fourth-placed Fulham in the play-offs, with the first leg being staged in Cardiff on Monday 27 July.
Swansea will play Brentford on July 26.