How did the Camp David Accords use diplomacy to achieve results?

They achieved a truce in Afghanistan.
They achieved release of the hostages in Iran.
They achieved a peace agreement in the Middle East.
They achieved a halt to the spread of communism by the Soviet Union.