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.
نرشح لكم
سلسلة الانتصارات توقفت.. أتلتيكو مدريد يتعادل مع ريال سوسييداد
للمرة الأولى منذ 47 عاما.. سان جيرمان يفوز على نادي باريس بهدفين
ريندرز: كان يجب علينا حسم مباراة تشيلسي مبكرا
ثأر من هزيمة السوبر واستعاد الصدارة.. إنتر يفوز على بولونيا
جوارديولا: تشيلسي أبطال العالم وليس فريق أكاديميات
ستراسبورج يعلن سفر مدربه إلى لندن للتفاوض مع تشيلسي
إنزو فيرنانديز عن رحيل ماريسكا: الأمر صعب بالنسبة لنا لكنها كرة القدم
تشالوباه: كنا في كامل التركيز أمام مانشستر سيتي رغم الأسبوع الصعب












كأس عاصمة مصر – بيراميدز يحقق فوزه الأول على حساب مودرن سبورت
خبر في الجول - ميكالي ضمن المرشحين لتدريب الزمالك
قائمة بيراميدز - حامد حمدان على رأس 23 لاعبا في معسكر أبو ظبي