(CNN) House Speaker Nancy Pelosi and a congressional delegation have concluded an unannounced visit to Afghanistan, Pelosi's office said Sunday evening.

The secret trip was made as Pelosi led the high-level congressional delegation to Jordan this weekend, where her office says they discussed Middle East peace and Syria with members of the country's royal family.

The group, consisting of eight Democrats and one Republican, met with Afghan President Ashraf Ghani, as well as the country's chief executive, Abdullah Abdullah, and other senior Afghanistan government officials, according to a statement from Pelosi's office. Defense Secretary Mark Esper visited the country at the same time for the first time in this role, and met with the delegation.

The delegation discussed security, governing and economic development during the visit, according to the statement. The group also traveled to Camp Morehead to meet with coalition troops.

"Our delegation emphasized the central importance of combating the corruption which endangers security and undermines the Afghan people's ability to achieve a stable and prosperous future," Pelosi said in the statement. "We underscored that the women of Afghanistan must be at the table for reconciliation talks."

Read More