Turnout has been high in Tanzania's most competitive general elections, officials say, as a new opposition coalition tries to end the governing party's 54-year grip on power.
In some areas, voting was extended to allow those still in queues to cast their ballots, officials added.
Opinion polls have put the governing Chama Cha Mapinduzi (CCM) party ahead, but the result is expected to be close.
Four opposition groups are backing one candidate, a former prime minister.
The BBC's Tulanana Bohela reports from the main city Dar es Salaam that usually busy streets and markets are deserted, and large queues have formed at polling stations as people wait patiently to cast their ballots.
President Jakaya Kikwete, who is standing down after two terms, has called for peace ahead of the election, adding that "anyone who tries to cause trouble will be dealt with".
CCM was formed in 1977 from a merger of two post-colonial parties and has effectively been in power since independence in 1961.
It has fielded Works Minister John Magufuli, 55, as its presidential candidate.
He is being challenged by Edward Lowassa, 62, who quit CCM after he failed to win its presidential nomination.
He is contesting the poll under the banner of the Ukawa coalition.
Both main presidential candidates have already cast their ballots.
"I've carried out my duty as a citizen by voting. My appeal to those Tanzanians who have not voted is to ensure they do so to elect the people they want," Mr Magufuli said.
Mr Lowassa said he was confident of victory, and urged people to vote peacefully.
Last week, he told the BBC Swahili service that he will "go back to his village to rear his cattle" if he loses.
The semi-autonomous island archipelago of Zanzibar is also voting for a president and local leaders.
It has been hit by violence in previous elections, unlike the mainland where elections tend to be peaceful.
The BBC's Sammy Awami in Zanzibar says that so far, there have been no reports of violence on the islands, with the voting process proceeding smoothly.
Latest Stories
-
Aklerh makes a ‘Mash Up’ move
7 minutes -
No business as usual – Mahama warns appointees
14 minutes -
Mr P.O.P: Message from the Morning Man by Kojo Yankson
16 minutes -
True peace stems from justice, not the lack of conflict – Duncan-Williams
17 minutes -
One dead, student rider injured in a crash at Assin Andoe
18 minutes -
Have a long term plan and financial solution for Ghana’s energy sector to permanently get rid of “dumsor”.
23 minutes -
Ghana to commission first NuScale small modular reactor simulator training centre in Africa
25 minutes -
FirstBank celebrates year-end thanksgiving service at Victory Bible Church
40 minutes -
FirstBank’s 2024 Graduate Trainees give back to the community: A day of learning and sharing at Mount Zion Presby Model Primary School
43 minutes -
Fire destroys hundreds of shops in Techiman Central Market, traders left in despair
56 minutes -
Apple board pushes against diversity rollback call
60 minutes -
‘Merit and loyalty go hand-in-hand,’ says Prof Aryee on Mahama’s appointments
1 hour -
Statue of former President Akufo-Addo in Sekondi destroyed
1 hour -
NDC promised to decouple AG and Minister of Justice roles – Prof Atsu Aryee reminds party
2 hours -
Wake up and speak up – Former GES boss calls on headteachers to lead boldly
2 hours