The war of attrition followed the June 1967 war, in which Egypt – to the immense surprise of most of its citizens and the outside world – was soundly defeated. Its air force was crippled and its army was virtually overrun, with Israel capturing the entire Sinai Peninsula.