A Ugandan court has ordered the military and police to leave the home of opposition politician Bobi Wine.
He has not left his house in the outskirts of the capital Kampala since voting in the presidential election 11 days ago, in which he was declared runner-up to President Yoweri Museveni.
Monday's ruling by the High Court in Kampala comes after a petition by Bobi Wine's lawyers.
The state argued it needed to prevent him organising protests.
Dozens of people were killed during campaigning - many were shot by security forces.
Bobi Wine alleges that the election, in which he won 35% of the vote as National Unity Platform leader, was rigged.
Uganda's Electoral Commission said the vote was peaceful, but the EU, United Nations and several rights groups have raised concerns. Aside from an African Union mission, no major international group monitored the vote.
In a phone interview with the BBC World Service days after the poll, Bobi Wine, a popular singer, 38, whose real name is Robert Kyagulanyi, said he was "worried about my life and the life of my wife".

The BBC's Patience Atuhaire in Kampala says armed police and soldiers have been stationed outside the musician-turned-politician's residence, not allowing anyone in or out.
Several more have been patrolling the neighbourhood.
Army spokesperson Brigadier Flavia Byekwaso has told the BBC that the security agencies will respect the court order.
Latest Stories
-
UK edges towards youth visa deal with EU
20 minutes -
‘We are committed to assisting Ghana and other countries hit by global tariff war — IMF MD
32 minutes -
‘IMF targets will be irrelevant by 2028’ – Bright Simons warns against programme exit
47 minutes -
‘Early IMF exit makes for great optics, bad economics’ – Bright Simons warns of premature celebration
1 hour -
‘Ghana’s IMF exit is a political show’ – Bright Simons warns of missed reform opportunity
2 hours -
California passes Japan as fourth largest economy
2 hours -
South Africa and Ukraine woo each other – as relationships with Trump turn sour
2 hours -
Benin admits that 54 soldiers killed in attack by al-Qaeda group
3 hours -
Stress doesn’t just affect your bladder. It can hijack your overall health
3 hours -
ASFC 2025: ‘I look up to Neymar’ – Ghanaian youngster John Andor
3 hours -
The dilemma of Mohammed Kudus: Prestige in Europe or big money in Saudi Arabia?
4 hours -
ASFC 2025: ‘We didn’t come to play’ – Ghana coach cautions South Africa ahead of semis clash
4 hours -
ASFC 2025: Ghana boys face last year champions Tanzania in semifinals
4 hours -
ASFC 2025: Ghana girls set up semis clash with defending champions South Africa
5 hours -
Tanzania bans South Africa and Malawi imports as trade row escalates
5 hours