Hull City boss Marco Silva was delighted with victory over West Ham.
Andrea Ranocchia headed home his first goal for Hull in the 85th minute to keep his side's survival hopes alive after Andrew Robertson's fine low finish after the break had cancelled out Andy Carroll's first-half opener.
Hull climbed level on points with fourth-from-bottom Swansea after securing a fourth win in five unbeaten home league games under head coach Marco Silva.
Silva extended his unbeaten home league record as a manager, stretching back through spells at Estoril, Sporting Lisbon and Olympiacos, to an impressive 39 matches.
"It's not a secret, it's the work," the Portuguese said. "We all work, our staff, our players, the supporters as well because nobody wins alone.
"It's important and they're very good numbers and give us all more confidence."