Ugandan opposition leader Kizza Besigye has been released on bail, after a judge ruled his detention by the military was illegal.
Police fired tear gas to disperse hundreds of Dr. Besigye's supporters who took to the streets in Kampala after his release Monday.
Uganda's military had detained Dr. Besigye since November, when he returned from self-imposed exile to run against President Yoweri Museveni in next month's presidential election.
A military tribunal has charged Dr. Besigye with terrorism and possessing illegal weapons. But a Ugandan High Court Judge, John Bosco Katutsi, said his detention was illegal because the High Court had suspended the military trial.
Dr. Besigye still faces rape charges, for which a civilian trial began Monday. He has denied all the charges, which supporters say were trumped up to keep him from running for president.
Some information for this report provided by AP, AFP and Reuters.