On October 1, Claudia Sheinbaum will take an oath, receive a sash and become the first female president of Mexico.
Sheinbaum is the former mayor of Mexico City and a climate scientist who received a Nobel Prize in 2007 as part of the Intergovernmental Panel on Climate Change.
She takes over a government utterly dominated by the ruling Morena party. Despite being barely a decade old, Morena has exploited pervasive public disillusionment with the more established parties. It has a majority in both chambers of the national congress and will hold 24 of 32 state governorships.
Morena has always been closely associated with its founder, the outgoing president, Andrés Manuel López Obrador, and his personalised, populist approach to politics.
Presidents are strictly limited to a single six-year term by the Mexican constitution. López Obrador says he will now retire to his ranch, far removed from the halls of power in Mexico City. However, some observers expect he will continue to wield power within Morena, the power behind Sheinbaum's throne.
While López Obrador built a winning political machine closely tied to his own charisma, it is unclear whether it is built to last. His policies ensured his popularity, but often did so in ways that might weaken governments in the future.
Sheinbaum thus begins her term in an extremely powerful position. At the same time, her power is often called into question, assumed to be not really her own. And she faces the difficult task of tackling some of the most intractable issues in the country, which her predecessor either skirted or exacerbated.
Organised crime and disorganised policy
One of the most pressing issues has dogged Mexican leaders for years: the high rates of homicides and other violent crimes.
Mexico's violence is often attributed to organised crime groups, but the situation is far more complicated. The violence is fuelled by a variety of factors. This includes collusion between officials and criminal groups, as well as the heavy-handed police and military responses to crime.
Since President Felipe Calderón declared an ineffectual war on narcotrafficking in 2006-08, every leader has taken their own approach to this issue. López Obrador came to office promising abrazos no balazos (hugs not slugs), aiming to address the underlying causes of crime through social programs. He even declared the war over in 2019. In practice, though, anti-crime measures continued.
Homicide rates remained high throughout his term, while extortion of businesses by criminal groups increased by 60%, partly because of perceived government permissiveness towards less violent crime.
In this year's election, the main candidates and parties appeared to be largely out of new ideas. Insecurity remains an urgent problem, but there were few real plans for better managing it.
Sheinbaum campaigned on the relative safety of Mexico City during her tenure as mayor, but the capital is a very different place to other parts of the country. Some wealthy cities are able to purchase a degree of safety through investments in police and private security (and perhaps tolerating extralegal security measures), but this doesn't offer a paradigm for the whole country.
Organised crime and the war on narcotrafficking still dominate the headlines, but this masks other alarming patterns of violence.
Femicide, or the murder of women because they are women, remained at persistently high levels during López Obrador's tenure, but received little attention from him. Investigations suggest that high levels of impunity for femicide can encourage other forms of violence.
The military becomes more public and private
On October 1, Sheinbaum becomes the supreme commander of the armed forces in Mexico. However, she assumes command of a military with more autonomy and power than at any other point in recent history.
For some time, activists and scholars have been sounding the alarm about the dangers of increased militarisation in Mexico - that is, the takeover of civilian roles by the military.
With the war on narcotrafficking in 2006, the military took on civilian roles related to security, such as policing. López Obrador expanded this range of roles tremendously, using the military to build major infrastructure projects.
López Obrador also awarded substantial concessions to the military. Having constructed several train lines as part of the Mayan Train megaproject in southeastern Mexico, for example, military businesses will now take over the management of the transport system, as well as connected airports, hotels and other tourism facilities.
Other militaries in Latin America have extensive economic portfolios, but these are usually seen as a relic of the authoritarian past. Once a government affords such public roles and economic autonomy to the military, it is very hard to claim them back.
This increased participation of the military in various aspects of public life raises troubling questions about transparency and justice.
For example, the military has provided little access to information on the Mayan Train project, such as environmental impact statements. When I conducted interviews, locals reported being pressured and intimidated by the military over the expropriation of land for infrastructure projects.
Sheinbaum's biggest challenges
Observers note that Sheinbaum rarely deviates from supporting López Obrador and his policies. This is sometimes taken as a sign of weakness, with Sheinbaum cast as a kind of dutiful daughter to the patriarch of Morena.
However, this risks oversimplifying - in a heavily gendered way - the political context in which Sheinbaum has risen to power. She has little to gain by distancing herself from her powerful predecessor before she has even taken office. (Adopting his regional accent, though, is another story).
The question of how Sheinbaum steps out from the shadow of López Obrador is an important one. But this has less to do with whether he goes quietly into retirement and more to do with the difficulties he leaves behind.
Presidential terms in Mexico are long (six years). Historically, this has afforded new presidents time to distance themselves from their predecessors (who often play a role in lifting them up) to develop their own agendas.
Sheinbaum's real challenge will be to develop policies that meaningfully tackle violence and insecurity, while managing a military with more autonomy and a shifting portfolio of interests.
Many other issues are also clamouring for attention. Sheinbaum would do well to start repairing some of the relationships that López Obrador damaged, such as between the president and the press, academia, Indigenous communities and the country's irrepressible feminist movements.