Rapper-turned-politician Balendra Shah will be sworn in as Nepal's prime minister after a landslide victory in the country's first election since last year's youth-led protests.

The 35-year-old's rise marks an important shift in Nepali politics. His promise of change resonated with an electorate that was angry at corruption, nepotism and elite rule.

Before taking office on Friday, Shah, popularly known as Balen, released a song filled with optimism about Nepal's future.

"Undivided Nepali, this time history is being made," he rapped in a track that garnered more than two million views within hours of its release.

The song harks back to his roots in the underground rap scene, where he used music to call out corruption and other social problems in Nepal.