Anand, who needed a win against Hao in the last round to win the title, was placed joint second going into his final game after his winning eight round encounter against local boy Jon Ludwig Hammer.
The shocking defeats of leader Sergey Karjakin and Magnus Carlsen, the highest rated player in the world, in the penultimate round also worked in Anand's favour as it threw the championship wide open.
Sergey Karjakin of Russia won the title with six points after his ninth and final round game against Bulgarian Veselin Topalov ended in a draw.
American Hikaru Nakamura defeated Jon Ludwig Hammer in the last round to finish joint second with local favourite Magnus Carlsen on 5.5 points.
Carlsen was held to an early draw in the ninth round by Levon Aronian in 30 moves after a bout of heavy piece exchange.