Vote counting is under way at some polling stations in Uganda’s capital, Kampala.
An increased presence of security force members was seen in about the last hour before polls closed at 13:00 GMT.
Lorries carrying soldiers drove through the city, while police and local defence units were also seen patrolling.
In some areas, voting is continuing. Election regulations state that people in queues can vote after the official closing time.
President Yoweri Museveni, who has been in power for 35 years, is seeking re-election.
The 76-year-old faces 10 challengers, most notably Bobi Wine, the 38-year-old pop star-turned politician.