Iran’s election for its next president will take place a year early, on June 28, after President Ebrahim Raisi died in a helicopter crash last month. The vote will usher the Islamic republic into new leadership amid domestic discontent, voter apathy and regional turmoil.

While the country’s supreme leader, Ali Khamenei, has the final say on all state matters, the Iranian president sets domestic policy and has some influence over foreign policy.

Here’s what to know about Friday’s presidential vote in Iran.

The election gives the Iranian leadership the chance to show it can handle a disaster like the unexpected death of a president without destabilizing the country, even as it grapples with internal protests and tension with the United States and Israel.

The election also allows the leadership to remind people that while Iran is a theocracy, it also holds elections for government positions such as president, members of Parliament and councils.

That said, who is allowed to run for president is carefully controlled. And if, as expected, one of the more conservative candidates, close to the clerical leadership, wins, the government will most likely claim it as a victory for its brand of politics — despite the sharp constraints placed on the competition.