By the late Vedic period, Nepal was being mentioned in various Hindu texts, such as the late Vedic ''Atharvaveda Pariśiṣṭa'' and in the post-Vedic ''Atharvashirsha'' Upanishad. The Gopal Bansa was the oldest dynasty to be mentioned in various texts as the earliest rulers of the central Himalayan kingdom known by the name 'Nepal'. The Gopalas were followed by Kiratas who ruled for over 16 centuries by some accounts. According to the Mahabharata, the then Kirata king went to take part in the Battle of Kurukshetra. In the south-eastern region, Janakpurdham was the capital of the prosperous kingdom of Videha or Mithila, that extended down to the Ganges, and home to King Janaka and his daughter, Sita.