The village, some 30 km from Modi's Lok Sabha constituency Varanasi, has had its tryst with history.
Legend has it that the village was named after 'Shahanshah' Humayun, who had taken shelter in the hut of an elderly woman here after his battle with Sher Shah Suri more than 450 years ago.
Today, Shahanshahpur played host to the prime minister, who inaugurated the 'Pashu Arogya Mela' (cattle health fair), being organised for the first time in the village, on 1,800 acres.
Uttar Pradesh Governor Ram Naik, Chief Minister Yogi Adityanath, Minister of State for Rural Development Mahendra Singh and BJP's UP President Mahendra Nath Pandey were also present on the occasion.
More From This Section
The residents of the village take pride in the lore about the Mughal emperor's visit.
"The prime minister's visit has given the villagers a reason to relive the tale," said Apna Dal (S) local MLA Neelratan Patel 'Neelu'. Apna Dal (S) is an ally of the BJP
That was when the elderly villager gave him shelter in her hut without knowing that her lodger was none other than Humayun, say locals.
Years later, when Humayun's soldiers succeeded in locating the village, the residents learnt who the overnight guest was.
After Emperor Humayun restored his rule, he sent his soldiers to say thanks to the elderly woman. Unfortunately, she was dead by then.
That was when their village -- till then known as Kalupur -- was named Shahanshahpur.