Pakistan on Thursday named Lieutenant-General Asim Munir as chief of its army.
Munir, who also headed both of Pakistan's powerful spy agencies, will take over from outgoing General Qamar Javed Bajwa, who retires later this month after a six-year term, the defence ministry said.
His appointment coincides with a dispute between the military and former prime minister Imran Khan, who blames the army for playing a part in his ouster earlier this year and who has been leading anti-government protests since then.
"It is based on merit, law and as per constitution," Defence Minister Khawaja Asif told reporters after announcing Munir's appointment.
The army has historically played a huge role in both domestic and foreign politics, and Munir's appointment could impact Pakistan's fragile democracy, its relations with neighbours India and Taliban-ruled Afghanistan, as well as its pivot towards China or the United States.
Munir is the 17th chief of the army since Pakistan gained independence from Britain in 1947, a period that has seen almost twice as many prime ministers in office. He was quartermaster general - in charge of supplies for the entire army - and served in an area disputed with India that borders China, as well as in major financial supporter Saudi Arabia.
President Donald Trump said on Monday he believed a nuclear deal the US is currently negotiating with Iran will be better than a 2015 international agreement to curb Tehran's nuclear programme.
A gunman shot one dead as he opened fire at Mexico's Teotihuacan pyramids on Monday before taking his own life, authorities said, in a rare attack at a major tourist attraction.
Iran is considering attending peace talks with the United States in Pakistan, a senior Iranian official told Reuters on Monday, following moves by Islamabad to end a US blockade of Iran's ports, a major hurdle for Iran to rejoin peace efforts.
Israeli strikes have killed at least five Palestinians in separate incidents in the Gaza Strip on Monday, Palestinian health officials said, while fighters from Hamas clashed with gunmen from an Israeli-backed militia, witnesses said.
A man hit in a Kyiv shooting on Saturday has died in hospital, bringing to toll of those killed in the incident to seven, Prosecutor General Ruslan Kravchenko said on Monday.