Spain and Egypt have agreed to study the feasibility of a bullet-train link between the Egyptian capital of Cairo and the ancient southern city of Luxor.

The agreement was signed Thursday by the countries' economy ministers during a one-day visit to Spain by Egyptian President Abdel-Fattah el-Sissi, Spain's Economy Ministry said.

Egypt is keen on improving its rail links while Spain has one of the world's most developed high-speed train systems. Spain will fund the study, the ministry said.

Cairo and Luxor, two of Egypt's most popular tourist destinations, are 500 kilometers (300 miles) apart.

During the visit, el-Sissi met with King Felipe VI and Prime Minister Mariano Rajoy for talks on combatting jihadi terrorism and improving bilateral economic links. Rajoy and el-Sissi were also to discuss migration, the conflicts in Libya, Syria and Yemen and the Israeli-Palestinian peace process, the government said.

The two countries also signed a crime and security cooperation accord and El-Sissi held talks with Spanish and Egyptian business leaders.

El-Sissi led the 2013 military ouster of Islamist President Mohammed Morsi and later was elected as a civilian president.