Ebrahim Raisi has come a long way. A seller of Islamic prayer beads in his teens, he is now Iran’s president-elect and seen by many as the country’s next supreme leader.

After winning a landslide in last week’s presidential election, on the lowest turnout in such a poll since the Islamic revolution of 1979, Raisi has the task of steering the country through a period which could determine the direction it takes for decades to come.

Although he has a reputation as a hardliner, he sought to strike an emollient tone in his victory speech on Tuesday in the holy city of Mashhad.

While his approach would not be based on “materialism” or “humanisme”, he said, unusually using the English and French words, he would be guided by a desire to protect “human dignity”.

“Agreeing with me is not a condition to work in the government,” he said, “but safeguarding people’s dignity will be the condition.”

Many Iranians regard him as the protégé of Ayatollah Ali Khamenei, Iran’s supreme leader, whose clerical classes Raisi followed as a student. They suspect the results of the election, in which more than half of the eligible voters stayed at home and senior reformist candidates were prevented from standing, were a foregone conclusion.

Raisi has shrugged off such concerns and described the electoral process as “glorious”.

He was born in 1960 into a mid-ranking clerical family in Mashhad in north-eastern Iran, where one of the 12 infallible leaders of Shia Muslims, Reza, is buried. His father died when he was five years old, plunging the family further into poverty.

“I have tasted poverty rather than only hearing about it,” Raisi has said. “I cannot recall [my family buying] one kilo of rice at all . . . or half a kilo of meat.”

When he was 15, he moved to Qom — home to the biggest seminary for Shia clergy — to continue his religious education. He sold beads in the streets to make ends meet.

Raisi’s own accounts of his political activity in the run-up to the 1979 revolution suggest it was limited to visiting the houses of clergy to gather information and distributing revolutionary tracts. He has said he met Ayatollah Khamenei at least twice during this period.

At the age of 23, Raisi married Jamileh Alamolhoda, a university professor and the daughter of the controversial Friday prayer leader of Mashhad who banned live music concerts and women cycling in the holy city.

He earned a PhD in Islamic jurisprudence and private law and after the revolution became a prosecutor in the cities of Karaj and Hamedan. He was transferred to the capital Tehran in 1985 as a deputy prosecutor and was allegedly a member of an execution committee involved in the mass execution of political prisoners in 1988.

In 2017, president Hassan Rouhani said that Raisi’s record contained “nothing but executions and jail sentences”. And in 2019, the US Treasury designated him the subject of sanctions for being involved in “extrajudicial executions” in 1988 and in the regime’s suppression of unrest in 2009.

More than three decades on from the executions, they remain the most significant stain on Raisi’s reputation. But hardliners in Tehran doubt that his background will create problems for the president-elect internationally. Western diplomats say negotiations to revive the Iran nuclear deal will continue. However, their governments could encounter opposition at home, since many relatives of the executed prisoners now live in the US and Europe.

Today, Raisi likes to portray himself as a politician tolerant towards his critics. During the recent election campaign, he declared proudly that as head of the judiciary, a position he has held since 2019, he has not shut down any newspapers, despite all the allegations about his past.

Instead, he said, he has concentrated on tackling corruption among the political elite, for which he has won plaudits from supporters and even critics.

“Compared to other hardliners, Raisi is considered a moderate figure who has no economic corruption in his record,” a reformist analyst says.

His approach towards the key centres of power — such as the supreme leader and the elite Revolutionary Guards — suggests obedience, analysts say.

On policy, he has proposed taking a tougher line on the nuclear negotiations, even though he needs to have crippling US sanctions lifted in order to boost Iran’s battered economy. Helping the poor and bolstering domestic industrial production are his top economic priorities.

If, as many suspect, Raisi intends to use the presidency as a springboard to becoming Iran’s supreme leader when the 82-year-old Khamenei dies, then the next few years will be vital for him. The role could either cost him the ultimate position, as the country struggles with interlocking economic, political and social crises, or pave his way to the very top.

“Raisi has neither the revolutionary background of Khamenei nor his political and cultural stature and public speaking skills,” says a reformist politician. “He will lose this game.”

But a hardline politician in Mashhad insists that all the president-elect needs is more experience. “As it took a long time for Mr Khamenei to be a mature leader and self-confident to stand against the US, Mr Raisi also needs time to become a powerful supreme leader and that can happen.”