South Africa's first black president and anti-apartheid icon Nelson Mandela has died, South Africa's president says.
Mandela, 95, led South Africa's transition from white-minority rule in the 1990s, after 27 years in prison.
He had been receiving intense home-based medical care for a lung infection after three months in hospital.
In a statement on South African national TV, Jacob Zuma said Mandela had "departed" and was at peace.
"Our nation has lost its greatest son," Zuma said.
He said Mandela would receive a full state funeral, and flags would be flown at half-mast.
BBC correspondents say Mandela's body will be moved to a mortuary in Pretoria, and the funeral is likely to take place next Saturday.
A crowd has gathered outside the house where Mandela died. Some are flying South African flags and wearing the shirts of the governing African National Congress, which Mandela once led.
The Nobel Peace Prize laureate was one of the world's most revered statesmen after preaching reconciliation despite being imprisoned for 27 years.
He had rarely been seen in public since officially retiring in 2004. He made his last public appearance in 2010, at ...