Guterres' statement comes after President Abdulla Yameen ordered a state of emergency in the country and gave sweeping powers to the law enforcement agencies and the military.
The picturesque Indian Ocean archipelago plunged into a political chaos last week when the country's Supreme Court ordered the release of nine imprisoned opposition politicians, maintaining that their trials were "politically motivated and flawed".
Guterres' spokesperson Stephane Dujarric in a statement said, "The Secretary-General urges the Government of the Maldives to uphold the constitution and the rule of law, lift the state of emergency as soon as possible, and take all measures to ensure the safety and security of the people in the country, including members of the judiciary."
"Jenca stressed the importance of upholding the Constitution and the rule of law, in particular the need to preserve the independence of the judiciary. He urged the Government of Maldives to release the Chief Justice and Supreme Court judges urgently," Deputy UN spokesman Farhan Haq told reporters.
More From This Section
He asked the Maldivian government to take all necessary measures to ensure the safety and security of all people in the country and to resolve the political crisis through all- party talks, which the UN stands ready to facilitate, Haq said.
Indonesia is the other country in the race.
"Given the backlash that Maldives is facing from across the world in the aftermath of the declaration of emergency by its president," UN observers said.
However, the Permanent Representative of Maldives to the UN, Ali Naseer Mohamed, still has hopes.
"The Maldives hopes to get elected to the Council at the election to be held in June this year for the term 2019 to 2020," he told a meeting of the Security Council on Tuesday.
"We believe that creating an accountable, transparent, and a coherent Security Council is a clear way to lead this Organisation into the 21st century," Mohamed told the powerful Security Council, which has 15 members.
Maldives has never been elected as members of the Security Council.