In 2010, he left the Cavaliers for the Miami Heat in a highly publicized free agency period.James won his first championship in 2012 when Miami defeated the Oklahoma City Thunder. In 2013, he led the Heat on a 27-game winning streak, the second longest in league history. Miami also won their second consecutive title that year. In 2014, the Heat reached the Finals for the fourth consecutive year, eventually losing to the Spurs. Following Miami's defeat, James opted out of his contract with the Heat and rejoined the Cavaliers.