The Chinese deity Nezha's origins can be traced back to the Hindu epic character Nalakuvara. The name Nezha is an abbreviated transliteration of its Sanskrit name.
Nalakuvara's father Kubera was eventually absorbed into the Buddhist pantheon as the Heavenly King Vaisravana. Vaisravana was somehow connected to the historical Tang Dynasty general Li Jing. This explains the name and position of Nezha's father, the Pagoda-Bearing Heavenly King Li Jing.
The original variant of Nalakuvara, Naluojiupo (那罗鸠婆), evolved into Nazha (那吒). By adding the "mouth radical" (口) to Na (那), the name transformed into its current form Nezha (哪吒).