Why was the 747 discontinued?

The end of the 747 has been a long time coming. Demand for the four-engine jet has decreased steadily in recent years as airlines have sought smaller, nimbler, more fuel-efficient twin-engine planes instead, such as the Airbus A330 and A350, and the Boeing 777 and 787.