Portugal and Austria have defeated Germany for seats on the powerful but deeply divided UN Security Council in a hotly contested race after intense campaigning.

On Wednesday, the United Nations will hold elections for several seats on the UN Security Council. Germany's government is campaigning vigorously for a seat.

The contest between ostensible allies in Berlin and Vienna in a vote set for Wednesday has been unusually cutthroat.