Mexico announced Monday that it is granting asylum to former Bolivian President Evo Morales, who resigned over the weekend amid protests over irregularities in last month’s presidential elections.

“Mexico has decided to grant [Morales] asylum on humanitarian grounds. In Bolivia, his life and his integrity are in danger,” Foreign Secretary Marcelo Ebrard said in a press conference.

The Mexican government said Sunday that it would offer asylum to the ex-president, but Morales officially requested and was granted sanctuary Monday afternoon.

Bolivia has been thrown into turmoil with demonstrators protesting the results of presidential elections in October in

Read more: Mexico grants asylum to ex-Bolivian president