The defeat left manager Gareth Southgate's men nineteenth in the table with 32 points, three behind the safety zone.
Egyptian midfielder Mohamed Shawki started and ended the game on the bench for Middlesbrough.
Carlton Cole opened the score line for the Hammers on 33 minutes, but his strike was cancelled out by Gary O'Neill five minutes after the interval.
Junior Stanislas scored the winner for the home side in the 58th minute.
In the meantime, Middlesbrough will be accompanied in the Championship by Teeside rivals Newcastle United, after the latter lost to Aston Villa.
The Magpies couldn’t capitalize on Hull City's defeat to champions Manchester United, as a Damien Duff own-goal was enough to dent Alan Shearer's men.
The result allowed Hull to escape relegation with 35 points in seventeenth spot, just one point more than Newcastle.
نرشح لكم
مؤتمر سيميوني: لسنا المفضلين للفوز على توتنام
مؤتمر سلوت: مشاركة صلاح في أمم إفريقيا أثرت علينا في صناعة الفرص
قرعة كأس إنجلترا – صلاح في مواجهة مرموش.. وتشيلسي أمام مفاجأة البطولة
مؤتمر ماك أليستر: صلاح يعرف ما عليه فعله لتحسين أرقامه
تقرير: ألونسو يتوصل لاتفاق لتدريب فريقه السابق بداية من الموسم المقبل
قبل مواجهة مانشستر سيتي.. ريال مدريد يعلن إصابة كاريراس
النادي الأكثر ارتباطا بالسينما.. ذا أثلتيك: أتلتيكو مدريد يروج لفيلم مقتبس من "بيكي بلايندرز"
أكانجي: لم نقدم ما يكفي أمام ميلان.. والأمر مختلف عن الهزيمة الأولى












مصدر من الأهلي لـ في الجول: من الصعب إقالة توروب قبل نهاية الموسم
استغل سقوط الأهلي.. بيراميدز يواصل مزاحمة الزمالك بالفوز على البنك الأهلي