Danny Graham scored his 100th career goal to secure victory for Swansea over Liverpool to end their debut Premier League season on a high.
Graham struck from close range with four minutes remaining to secure a memorable win.
Swansea had dominated the first half and Gylfi Sigurdsson twice went close to giving them the lead.
Liverpool were much improved after the break and Andy Carroll's overhead kick was saved by Michel Vorm.
There was a carnival atmosphere at the Liberty Stadium with many home fans dressed as Elvis to celebrate Swansea's first season in the Premier League.
Swansea enjoyed plenty of early possession and Joe Allen dispossessed Jonjo Shelvey but his shot across the face of goal eluded Graham at the far post.
Liverpool's nervy start continued as goalkeeper Alexander Doni, in for Pepe Reina, was penalised for picking up a long back pass from Andy Carroll.
From the resultant free-kick Gylfi Sigurdsson passed the ball short to Scott Sinclair but his shot was deflected over for a corner.
Liverpool's first chance of note came on 14 minutes when Maxi Rodriguez, in possibly his final game for the Reds, flashed a shot wide of the post.
But Swansea continued to control the game and Sigurdsson saw his shot blocked on the line by Maxi following Allen's corner.
The visitors were finding it hard to get a foothold in the game although Ashley Williams was forced to head clear Shelvey's effort from the edge of the area.
Sigurdsson, after being fouled by Shelvey, hit a free-kick low past the edge of the wall but Doni got down to his right to tip the ball round the post.
Match of the Day commentator
"It's another memorable victory for Swansea City in a season that will go down in the history of this club as one of their very best. Brendan Rodgers' team getting all three points on the final day of the season thanks to a late goal from Danny Graham."
Liverpool showed very little threat in front of goal with striker Andy Carroll directing a header straight at Vorm before firing a shot wide.
Dyer should have done better when Sigurdsson's pass put him in the open but he shot straight at Doni.
Carroll's frustration boiled over during the final minute of the first half when he was involved in a scuffle with Swans captain Ashley Williams and both players were booked by referee Mark Halsey.
Liverpool started the second half with more purpose with Jordan Henderson firing straight at Vorm.
Carroll came closest to opening Liverpool's account when he hit a spectacular overhead kick which forced Vorm into a fine save.
Substitute Craig Bellamy flashed a shot well wide of the post before Neil Taylor snuffed out an opportunity for his Wales team-mate, who was bearing down on goal.
Liverpool looked the more likely side to score as the game entered its final stages with Carroll's low shot forcing Vorm into another save.
But it was the home side who finally broke the deadlock with four minutes remaining
Angel Rangel and Sinclair combined on the right and Graham converted coolly from close range for his 14th goal of the season.
The victory meant Swansea finished their first season in the Premier League in 11th with Liverpool completing the campaign in eighth position.
Swansea manager Brendan Rodgers: "It's been a wonderful day for the football club and all the credit to the players and the supporters.
"We started out on an incredible journey at the beginning of the season - it was the first Welsh club into the Premier League
"To finish it off with 14 clean sheets, playing how we wanted to play and to arrive in 11th place is an incredible achievement.
"It's important now to celebrate that success and look to improve over the summer and go again for next season."
Liverpool manager Kenny Dalglish: "If there was going to be a goal I thought it was going to be us who scored it. There was never going to be much in it. Unfortunately for us they got it.
"Congratulations to Swansea, they've done fantastic.
"They've had a great season and to win in front of their home fans in the last game of the season will send them away through the summer with a good taste in their mouth."
- 01 Vorm
- 02 Williams Booked
- 03 Taylor
- 04 Caulker
- 22 Rangel
- 07 Britton
- 11 Sinclair
- 12 Dyer (Routledge - 79' )
- 24 Allen
- 42 Sigurdsson (Gower - 88' )
- 10 Graham
- 25 Tremmel
- 05 Tate
- 16 Monk
- 15 Routledge
- 27 Gower
- 39 Gwion Edwards
- 19 Moore
- 32 Doni
- 02 Johnson
- 05 Agger
- 23 Carragher
- 34 Kelly
- 11 Maxi (Kuyt - 73' )
- 14 Henderson
- 19 Downing (Bellamy - 60' )
- 33 Shelvey
- 07 Suarez
- 09 Carroll Booked
- 01 Jones
- 03 Jose Enrique
- 16 Coates
- 20 Spearing
- 31 Sterling
- 18 Kuyt
- 39 Bellamy
Live Text Commentary
Full Time The referee blows for the end of the match.90:00 +1:25
Inswinging corner taken from the left by-line by Craig Bellamy, Close range headed effort by Daniel Agger misses to the right of the goal.87:47 Substitution
Substitution Mark Gower replaces Gylfi Sigurdsson.85:52
Assist by Angel Rangel.85:52 Goal scored
Goal! - Danny Graham - Swansea 1 - 0 Liverpool Danny Graham finds the net with a goal from close in to the bottom right corner of the goal. Swansea 1-0 Liverpool.84:24
Luis Suarez takes a shot. Blocked by Ashley Williams.79:36
Scott Sinclair takes a shot. Blocked by Jamie Carragher.79:01
Dirk Kuyt takes a shot. Blocked by Ashley Williams.78:25 Substitution
Substitution Nathan Dyer leaves the field to be replaced by Wayne Routledge.78:11
Neil Taylor delivers the ball.76:32
Unfair challenge on Gylfi Sigurdsson by Dirk Kuyt results in a free kick. Ashley Williams restarts play with the free kick.75:30
Shot by Andy Carroll from 12 yards. Michel Vorm makes a save.73:48
Luis Suarez takes the outswinging corner, Daniel Agger takes a shot. Michel Vorm makes a save.72:28 Substitution
Substitution Dirk Kuyt replaces Rodriguez Maxi.71:26
Free kick awarded for an unfair challenge on Luis Suarez by Joe Allen. The free kick is swung in right-footed by Craig Bellamy.66:48
Nathan Dyer is penalised for a handball. Direct free kick taken by Glen Johnson.64:16
Craig Bellamy produces a right-footed shot from just outside the area that goes wide left of the goal.63:44
Handball by Gylfi Sigurdsson. Free kick taken by Jordan Henderson.62:53
Gylfi Sigurdsson takes the outswinging corner, Steven Caulker has a headed effort from close range and clears the bar.62:33
Shot from inside the six-yard box by Angel Rangel goes wide right of the target.
Corner taken by Gylfi Sigurdsson, Andy Carroll manages to make a clearance.59:37 Substitution
Substitution (Liverpool) makes a substitution, with Craig Bellamy coming on for Stewart Downing.59:37
Effort on goal by Scott Sinclair from inside the area goes harmlessly over the bar.58:53
Neil Taylor challenges Andy Carroll unfairly and gives away a free kick. Stewart Downing takes the direct free kick.55:25
Andy Carroll takes a shot. Michel Vorm makes a save.53:40
Andy Carroll takes a shot. Steven Caulker gets a block in. Inswinging corner taken right-footed by Rodriguez Maxi, Corner taken by Stewart Downing from the right by-line to the near post, clearance by Gylfi Sigurdsson.52:52
Free kick awarded for an unfair challenge on Daniel Agger by Gylfi Sigurdsson. Direct free kick taken by Alexander Doni.50:18
Jordan Henderson takes a shot. Michel Vorm makes a save.49:56
Stewart Downing decides to take the corner short.48:25
Gylfi Sigurdsson takes a shot. Blocked by Rodriguez Maxi.45:01
The game restarts for the second half.45:00 +3:06 Half time
Half Time The match has reached half-time.45:00 +1:10
Direct free kick taken by Jamie Carragher.45:00 +1:10 Booking
Booking Ashley Williams booked.45:00 +1:10 Booking
Booking Andy Carroll goes into the book.45:00 +0:35
Ashley Williams challenges Andy Carroll unfairly and gives away a free kick.43:17
Nathan Dyer takes a shot. Save by Alexander Doni.41:53
Close range strike by Andy Carroll goes over the bar.39:44
Nathan Dyer concedes a free kick for a foul on Rodriguez Maxi. Direct free kick taken by Glen Johnson.39:17
Andy Carroll takes a shot. Save made by Michel Vorm.38:21
Neil Taylor takes a shot. Save by Alexander Doni.36:24
Andy Carroll has an effort at goal from outside the penalty box missing to the wide right of the goal.35:26
Scott Sinclair fouled by Martin Kelly, the ref awards a free kick. Free kick taken by Joe Allen.32:44
Inswinging corner taken right-footed by Gylfi Sigurdsson from the left by-line, save made by Alexander Doni. Shot from just outside the box by Leon Britton misses to the right of the goal.31:19
Foul by Jonjo Shelvey on Gylfi Sigurdsson, free kick awarded. Direct effort from the free kick comes in from Gylfi Sigurdsson, save by Alexander Doni.28:22
Foul by Jonjo Shelvey on Leon Britton, free kick awarded. Angel Rangel restarts play with the free kick.26:24
Corner taken by Gylfi Sigurdsson, clearance by Andy Carroll.24:14
Jonjo Shelvey takes a shot. Ashley Williams gets a block in.22:05
Outswinging corner taken right-footed by Joe Allen played to the near post, Gylfi Sigurdsson takes a shot. Blocked by Jamie Carragher.19:53
Danny Graham is caught offside. Alexander Doni restarts play with the free kick.19:05
Free kick awarded for an unfair challenge on Danny Graham by Jamie Carragher. Neil Taylor takes the free kick.14:39
Shot from just outside the box by Rodriguez Maxi misses to the left of the target.10:15
Gylfi Sigurdsson takes the indirect free kick. Scott Sinclair takes a shot. Jamie Carragher gets a block in. Gylfi Sigurdsson decides to take the corner short.8:05
Shot by Joe Allen from deep inside the penalty area misses to the right of the target.0:00
The match gets underway.
Live data and text provided by our data suppliers