The United Nations on Friday honoured former South African president Nelson Mandela ahead of his 92nd birthday, according to dpa. The UN decided in November 2009 to declare Mandela's birthday on July 18 as Nelson Mandela International Day, in support of an appeal by the revered statesman for his birthday to be used for good. Mandela spent 27 years in prison - between 1963 and 1990 - for resisting apartheid rule. On his release, he led negotiations with his former jailors to transition the country to democracy - a process that culminated in his election as the country's first black president in 1994. "Nelson Mandela's accomplishments came at great personal cost to himself and his family. His sacrifice not only served the people of his own nation, South Africa, but made the world a better place for all people, everywhere," said UN Secretary-General Ban Ki-moon. At a special commemorative ceremony, Ban said Mandela was an inspiration to millions. "He was not backed by money or power. As he constantly reminds us, he is an ordinary man. But he has achieved extraordinary things." Mandela is one of the world's "greatest political and moral leaders" and a "hero" of our times, the UN General Assembly said in a declaration from its 192 member countries. The UN said the celebration of Mandela's birthday should serve to remind people across the world about the need for social equality and justice and the pursuit of peace through dialogue.