The fighting was short-lived; the war ended 23 days later, on 19 October,[1] by a ceasefire.[3] This was followed by the Cairo Agreement of 28 October,[3] which put forward a plan to unify the two countries in a "republican, national and democratic" state, based on "free and direct" elections.[3][2]