David Miliband was born in London to Polish-Jewish parents and is an atheist. He was raised in Primrose Hill, London. He is the elder son of Marxist Ralph Miliband and Marion Kozak. He is the elder brother of Labour leader Ed Miliband. He was educated at the University of Oxford and was the head of the Number 10 Policy Unit from 1997-2001. He was first elected in the 2001 general election. After being part of Tony Blair and Gordon Brown's governments, Miliband was a candidate in the 2010 Labour leadership contest. Despite Miliband being favourite to win the contest, his brother Ed narrowly won the contest in September 2010. Miliband chose not to be a member of Ed's shadow cabinet.