CAIRO - U.S. defense chief Jim Mattis met with Egypt's President Abdul Fattah el-Sissi in Cairo, ahead of a counter-extremism conference focused on West Africa on Sunday.

During the meeting, Secretary Mattis offered condolences for the recent terrorist attack on a mosque in Bir al-Abed, Egypt, and recognized Egypt as a strategic defense partner with the United States.

Mattis Meets with Egyptian President to Discuss Terrorism, Middle East Challenges

Mattis noted Egypt's importance to the stability of the Middle East as well as Egypt's ongoing fight against terrorism and efforts to protect Egypt's borders.

Mattis Meets with Egyptian President to Discuss Terrorism, Middle East Challenges

A report on the meeting said the two leaders discussed a range of Middle East security issues and talked about a mutual desire to cooperate on terrorism and regional challenges.

Mattis Meets with Egyptian President to Discuss Terrorism, Middle East Challenges

Earlier, on the flight to Cairo, Mattis told reporters that counterterrorism cooperation with Egypt is growing. He said the U.S. remains committed to strong ties with Cairo, despite freezing some military aid to Egypt over rights concerns earlier this year.

Cairo was the first stop on a four-nation tour that also includes Jordan, Kuwait, and Pakistan.

The trip comes as the U.S. military shifts its focus in the Middle East, after having driven out the Islamic State militant group from its self-declared caliphate in Iraq and Syria.

A major focus of the trip will be pressuring Pakistan to end its alleged ties to militant groups that have attacked U.S. and coalition forces in Afghanistan.

“We have heard from Pakistan leaders that they do not support terrorism, so I expect to see that sort of action reflected in their policies,” Mattis told reporters.

In October, Mattis said the United States would try “one more time” to work with Islamabad before taking “whatever steps are necessary” to address its alleged support for the militants.

Egypt last week suffered what officials called the deadliest terror attack in the country's modern history, when 25-30 militants carrying Islamic State flags killed over 300 worshippers at a mosque frequented by Sufi Muslim worshippers.

Mattis said he will deliver his condolences for the attack, which occurred in the restive Sinai Peninsula.

“We are working closely with Egypt on how they can best defeat this common threat,” Mattis said, adding that U.S.-Egypt counterterror cooperation has grown during his time as defense chief.

?

But earlier this year, the Trump administration denied Egypt $96 million in aid and delayed a further $195 million over human rights concerns.

Egyptian officials called the move a “misjudgment.”

The United States gives Egypt approximately $1.3 billion in military aid every year.

Trump has since said he would consider reinstating the full aid. Mattis did not say whether he would discuss reinstating the assistance during his visit to Cairo.

The Sinai attack could help justify that decision, said Timothy Kaldas, who specializes in U.S.-Egypt relations at the Tahrir Institute for Middle East Policy.

But, he warned, Egypt's rights record has not progressed since the aid suspension was announced.

"Moreover, there are no indications from the government, nor legislation under consideration that suggests the rights situation will improve in the near future," he added.

President Sissi has vowed to use "all brute force" necessary to respond to the Sinai attackers, and to secure the restive Sinai within the next three months.

Since 2011 the militant group Sinai Province has been active in North Sinai, a remote desert region that borders the Gaza Strip. It has carried out several deadly attacks against police, soldiers, and Coptic Christians.

Securing the area has proven problematic for Sissi. Egypt's military launched a large-scale military campaign against militants in September 2015. But, as evidenced by last week's attack, its effectiveness has been questionable.

of carrying out extrajudicial killings and torture.

Perhaps the highest-profile portion of the trip will occur in Pakistan, where Mattis is expected to try to persuade Islamabad to destroy what the U.S. calls terrorist “safe havens.”

The U.S. has for a decade accused Pakistan of sheltering terrorists, including the Afghan Taliban. Pakistan denies sheltering the militants, and the issue has served as a major irritant to bilateral ties.

The dispute has a direct impact on Afghanistan, where U.S. generals acknowledge the NATO coalition remains in a stalemate with Taliban insurgents after 16 years of war.

Thousands more U.S. troops are headed to Afghanistan, along with an increase in U.S. airpower, as part of a new White House strategy announced in August.