Question: who becomes king of erebor when thorin dies
Answer: Upon Thorin 's death , the title passed to Dáin , his cousin and nearest heir .