Around 800 protesters marched through Sudan's capital on Friday against a court's decision this week to seek the death penalty for Egypt's ousted Islamist president Mohamed Morsi.
Sudan's government has up to now declined to comment on the sentence in neighbouring Egypt, describing it as an internal matter.
But the march organised by the Islamic Movement, a faction of Sudan's ruling National Congress Party, suggested some in the ruling elite wanted to send a stronger signal against Egypt's crackdown on Morsi's Muslim Brotherhood.
Hundreds of Sudanese, joined by dozens of Egyptians, marched from the Grand Mosque following Friday prayers, as police watched on, a Reuters witness said.
Crowds held up pictures of Morsi and other Brotherhood figures, as well as Turkish President Tayyip Erdogan.
They also chanted slogans against Egypt's current President Abdel Fattah al-Sisi, who as army chief orchestrated Morsi's ouster following mass protests against his rule.
Sudan's President Omar Hassan al-Bashir came to power in a bloodless coup in 1989, backed by the army and Islamists.
But analysts say the government, facing international sanctions over its human rights record, has more recently sought to broaden its support across the Middle East by publicly distancing itself from the Brotherhood, which is seen as a security threat in Egypt and other Arab states.
The Egyptian court's decision has drawn widespreadd international criticism, with Turkey warning of regional turmoil if Morsi is executed.
The ruling against Morsi is not final until June 2. All capital sentences are referred to Egypt's top religious authority, the Grand Mufti, for a non-binding opinion, and are also subject to legal appeal.