The war ended on October 26, 1973. After the war, Egypt and Israel negotiated. They reached an agreement to separate their forces. The agreement led to Israel retreating behind the Suez Canal. The Egyptian forces stayed in the Sinai near the canal and did not retreat from the places they captured. There was a large distance between Egyptian and Israeli forces in the Sinai as part of the agreement.