Saudi Arabia's king has addressed the Egyptian parliament on the fourth day of a landmark visit that saw the oil-rich kingdom pledge billions of dollars in investment and aid to Egypt.

In his six-minute address Sunday, King Salman said Egypt and Saudi Arabia have agreed to build a bridge linking the nations across the Red Sea and to work together to create a pan-Arab defense force, an Egyptian idea first floated last year.

Lawmakers received Salman with deafening applause and a standing ovation. Some lawmakers waved the kingdom's green flag, while others chanted "all of Egypt greets you."

Saudi Arabia has been a traditional source of economic and political support to Egypt, but the kingdom significantly stepped up its backing after the military's 2013 ouster of an Islamist President.