Former President Demetris Christofias, who died last Friday at the age of 72, was given a state funeral on Tuesday.
A funeral service was held in a church according to the customs of the Greek Orthodox Church.
The body of Christofias lied in state flag at the building of a left wing trade union, with thousands of people passing by from early morning until shortly before the funeral service.
Cypriot President Nicos Anastasiades led all his ministers who lined up inside the church at Ayia Sofia church in a Nicosia suburb, which was chosen to host Cypriot and foreign officials.
Scorching temperatures of over 40 degrees Celsius, that prompted yellow alert, did not deter tens of thousands of people to fill the spaces around the church or line the streets.
Attending the funeral was Greek Prime Minister Alexis Tsipras, accompanied by Defense Minister Evangelos Apostolakis.
People clapped as Tsipras and President Anastasiades arrived at the church.