Media playback is unsupported on your device Media caption Key moments from Lee Kuan Yew's state funeral

Singapore is bidding farewell to its founding Prime Minister Lee Kuan Yew, who died on Monday aged 91.

Despite torrential rain, tens of thousands lined the streets to view the funeral procession carrying Mr Lee's coffin through the city-state.

A state funeral then took place attended by world leaders, ahead of a private family cremation ceremony.

About 1.5 million people paid tribute to Mr Lee at sites around the country this week the government said.

In his eulogy, Mr Lee's son, the current Prime Minister Lee Hsien Loong, said his father had "lived and breathed Singapore all his life".

"The light that has guided us all these years has been extinguished," he said.

Media playback is unsupported on your device Media caption Lee Hsien Loong: "The heavens opened and cried for him"

Image copyright EPA Image caption Crowds lined the entire funeral route through the city despite pouring rain

The funeral procession began on Sunday at 12:30 (04:30 GMT) as Mr Lee's body was taken from Parliament House on a gun carriage.

A 21-gun salute sounded, echoing across the city, as the procession moved on into the business district and Tanjong Pagar, the docklands constituency Mr Lee represented for his whole political life.

Military jets flew overhead while two Singaporean navy vessels conducted a sail-past of the Marina Bay barrage - the massive water conservation project spearheaded by Mr Lee.

Image caption The guns for the salute were barely visible through the rain

Image copyright AP Image caption There were both tears and cheering as the procession came in to view

At the scene: Tessa Wong, BBC News,Singapore

It was a scene unlike any other in practical-minded Singapore: a mass demonstration of pure emotion.

As the funeral procession rolled into view at the Padang outside parliament, the chants and cheers grew louder from the thousands clad in black waiting in the downpour. Some wept, and people began shouting, "Thank you Mr Lee", "Goodbye", "Take care", and a refrain from Mr Lee's speech at the same spot 50 years ago declaring Singapore's independence: "Merdeka", meaning "free" in Malay.

At the Tanjong Pagar Community Club, hundreds more gathered to watch a screening of the funeral service. Many had come from elsewhere as they knew it was Mr Lee's constituency. "He was a great man. Nobody can replace him," one 60-year-old man told me.

Singapore has seen increasing political and social divisions in recent years as it grapples with inequality and demands for political pluralism. Even Mr Lee's death spurred debate online with critics fearing that idolatry would sweep his controversial human rights record under the carpet. But on Sunday, the country came together briefly for a rare show of grief.

On the streets for Lee's funeral

Which direction will Singapore take now?

Foreign leaders in attendance included former US President Bill Clinton, Indian Prime Minister Narendra Modi, Indonesian President Joko Widodo, Japanese Prime Minister Shinzo Abe, Australian Prime Minister Tony Abbott and UK House of Commons leader William Hague.

Image copyright AP Image caption Indian PM Narendra Modi, Cambodian PM Hun Sen, Australian PM Tony Abbott and former US President Bill Clinton were among those attending the state funeral

In his emotional eulogy, Prime Minister Lee said that although his father had not lived to see Singapore's 50th anniversary celebrations later this year, the country could be proud he had "lived to see his life's work come to fruition".

He cited the famous epitaph for Sir Christopher Wren, architect of London's St Paul's cathedral: if you seek his monument, look around you.

"To those who seek Mr Lee Kuan Yew's monument, Singaporeans can reply proudly: 'look around you'," he said.

After eulogies from nine other leading figure, sirens sounded across the city to mark the beginning and end of a minute's silence. Singaporeans were asked to recite the national pledge of allegiance and join in singing the national anthem.

The coffin is now being carried north to the Mandai crematorium.

Lee Kuan Yew mourning in numbers:

Image copyright Reuters

31 - number of years Mr Lee was prime minister of Singapore. He stepped down in 1990

454,687 people filed past the coffin as it lay in state in parliament, averaging 6,500 every hour according to government

10 hours - length of queue at some points on Friday

1.1 million people paid tribute at 18 community sites around the country - a fifth of the population

170 foreign dignitaries attending the state funeral

15.4km (9.5 miles) - length of funeral procession route

249,844 likes on the official Remember Lee Kuan Yew Facebook page

Two navy ships staging a sail-past off Marina Bay

One minute silence being observed across entire country

Even after he stepped down in 1990, Mr Lee remained hugely influential in political life and was held in deep affection by Singaporeans.

He oversaw Singapore's independence from Britain and separation from Malaysia. He was widely respected as the architect of Singapore's prosperity - the city-state's GNP per capita increased 15-fold between 1960 and 1980.

However, he also introduced tight controls, restricting freedom of speech and of the press. Political opponents were targeted by the courts.

Speaking about his legacy to the New York Times in 2010, Mr Lee said: "I'm not saying that everything I did was right, but everything I did was for an honourable purpose."