The history of Janakpur is deeply interwoven with ancient Hindu mythology. According to the Ramayana, it was the capital of the Videha dynasty, ruled by King Janaka. It was here that King Janaka found the infant Sita in a furrow while ploughing a field, and here that Lord Rama later strung the divine bow of Shiva to win her hand in marriage. This Vedic-era significance established the region as a center of philosophy, learning, and culture in ancient times.
For centuries after the decline of the Videha kingdom, the area went through various political shifts, coming under the sway of different empires, including the Mauryas and the Guptas, and later the local Karnata dynasty of Mithila. The indigenous Maithil people maintained a distinct cultural identity through language, art, and localized traditions, surviving through centuries of changing regional powers.
In modern history, Janakpur was incorporated into the unified Kingdom of Nepal by the Shah dynasty in the late 18th century. The city’s architectural centerpiece, the magnificent Janaki Mandir, was constructed in 1910 by Queen Brisabhanu Kunwari of Tikamgarh (India), cementing Janakpur's modern status as a premier pilgrimage destination. Throughout the 20th century, the city saw periods of economic and infrastructural development, notably becoming the terminus for the Nepal Government Railway in 1937.
In recent decades, Janakpur has played a crucial role in Nepal's political landscape, serving as a stronghold for the Madhesh movement, which advocated for greater political representation for the people of the Terai. Following Nepal's transition to a federal republic, Janakpur was designated the capital of Madhesh Province (formerly Province No. 2) in 2018, opening a new chapter of regional autonomy and urban development.
