The opposition declared a victory in pivotal polls in the Maldives on Sunday, paving the way for the ouster of a leader who aligned the strategically located archipelago more closely with China at the expense of traditional democratic allies during his five-year term.