Huddersfield robbed Swansea of their unbeaten record in the Sky Bet Championship as they won on the road for the first time in three months at the Liberty Stadium.
Josh Koroma clinched a 2-1 victory with his first goal for the club in the 67th minute after the home side cancelled out Harry Toffolo's opener with an Andre Ayew penalty.
Marc Guehi forced Ben Hamer into the first save of the match in the Huddersfield goal with a long-range shot in only the fourth minute. That was the first of four shots on target in the first half from the home side, who also forced nine corners
Jamal Lowe almost opened the scoring in the 13th minute after being put through by Korey Smith, but Hamer made a brilliant one-handed save to keep the scores level.
Having been forced back into their own half for nearly all of the opening 20 minutes, Huddersfield finally pressed forward and scored from their first corner of the match three minutes later.
Juninho Bacuna exchanged passes in a short corner move with Carel Eiting, ran to the edge of the box, and fired in a fierce right-footed shot. Toffolo then guided the ball past Freddie Woodman in the home goal to give his side the lead against the run of play.
Within a minute the hosts were almost back on level terms. Viktor Gyokeres fired in a shot-cross from the right and Lowe just failed by inches to get his toe to the ball to direct it into an empty net.
Swansea were level in the 33rd minute after referee Tony Harrington ruled Hamer had impeded Smith as he went for an Ayew chip to the edge of the six-yard box.
Huddersfield were not happy, but Ayew was delighted to be able to celebrate his 100th appearance for the club with his 32nd goal.
Huddersfield, who had not won away since 1 July when they beat Birmingham 3-0, started the second half far more confidently and could have scored three times within 10 minutes.
Twice Isaac Mbenza went close, one effort hitting the post, and then Eiting failed to hit the target when it seemed easier to score.
Swansea then fluffed their lines at the other end as Ayew missed with a point-blank header from a Matt Grimes free-kick and then Lowe latched on to a poor back pass from Koroma and failed with two attempts to beat Hamer.
The catalogue of misses was eventually broken in the 67th minute when Koroma hit the target from inside the box to give Huddersfield the points.
What the managers said...
Swansea's Steve Cooper: "The performance today was good enough to win the game, but we conceded two really poor goals. We missed so many clear cut chances. It was the most chances we have created in any of our games this season. If you'd have told me before the game that we would have created that many chances then I would have taken it.
"Even though we conceded two goals, we could have scored four or five. We're disappointed that we let the game slip away from us. We just weren't clinical enough."
Huddersfield's Carlos Corberan: "It has been two tough seasons at Huddersfield and I could feel that in the players. They arrived for pre-season as the team that had lost more games this year than any other in the four divisions. I'm here to change that situation. I want the players to feel proud of what they are doing and the fans to be proud of them.
"I was happy about the mentality of my team from the first minute. We knew it was going to be a tough game because of the quality of Swansea. We defended too much in the first half, but in the second we broke their press and we were better. We started to play more in their half and the players trusted in themselves and in the work we have done."