West Ham United narrowly escaped relegation by finishing 17th in the First Division in the 1976–77 season.