section_path: First career in Norwegian politics (1990 – 2013)/Second term as Prime Minister (2005–2013)
section_name: Second term as Prime Minister (2005–2013)
paragraph_text: Second term as Prime Minister (2005–2013)
  
  Stoltenberg's second cabinet governed Norway from 17 October 2005 to 16 October 2013. The 2005 parliamentary election saw a vast improvement for Labour, and the party gained a majority in parliament together with the other "Red-Green" parties, the Socialist Left Party and the Centre Party. This paved the way for a historic first in Norway, with Labour joining in a coalition government, the Red-Green Coalition, after a coalition deal with Stoltenberg was struck. Since the government's formation, key political issues such as Norwegian military participation in the war in Afghanistan, petroleum activities in the Barents Sea, LGBT rights, immigration and the quality of standard education were greatly debated by the public. Following Stoltenberg's re-election in 2009, he worked on the Norwegian response to the ongoing global recession and championed for environmentalist policies through private and corporate taxation.
  
  A marine border dispute with Russia in the Barents Sea since 1978 was settled when Stoltenberg and President of Russia Dimitry Medvedev signed an agreement on 27 April 2010 in Oslo. The agreement is a compromise, which divides a disputed area of around 175,000 km 2 (68,000 sq mi) into two approximately equally sized parts. However, the agreement still needs ratification by the State Duma and the Parliament of Norway in order to be implemented. Whereas Norway had previously insisted on a border in accordance with the equidistance principle, which is recognized in international law, specifically the United Nations Convention on Law of the Sea Article 15 and the Convention on the Territorial Sea and the Contiguous Zone Article 6, Russia invoked a Stalin -era decree of the Soviet Union from 1926, which was not recognised by any other country. The new agreement replaced a controversial temporary agreement negotiated by Jens Evensen and Arne Treholt, who was later revealed to be a Soviet spy and who aided the Soviet Union in the negotiations. Most of the disputed area was within what would normally be considered Norwegian according to the relevant international treaties.
  
  As Prime Minister, Stoltenberg worked for a constructive relationship with Russia through dialogue and cooperation underpinned by NATO's deterrence and defence capabilities. During his tenure, he also emphasised the need to focus on security challenges close to Allied territory.