Relations have warmed since the 2013 ouster of Islamist president Mohamed Morsi, with Saudi Arabia offering billions in aid to Egypt and Cairo participating in a Saudi-led bombing campaign against Iran-backed rebels in Yemen.
Today, a Saudi delegation led by Deputy Crown Prince Mohammed bin Salman visited Cairo and signed the "Cairo Declaration," also attending a military parade with President Abdel Fattah al-Sisi.
"The two sides stressed the need to exert all efforts to boost security and stability in the region, and to work together to protect Arab national security," Sisi's office said after the signing.
And Egypt has backed Riyadh's air campaign against Shiite rebels in Yemen, regularly saying it shares a common vision with Riyadh on tackling the crisis there.
Also Read
Cairo had previously said it would also be prepared to commit ground troops if required.
The new Cairo-Riyadh pact also backs building a new joint Arab military force to fight terrorism in the region.
On August 27, Arab defence and foreign ministers are to gather in Cairo to discuss the modalities of the force.