Iveta Blaua (Unity) was the other sole candidate for the post of Jūrmala mayor, however she was not supported by the council.
The Jūrmala City Council has 15 members, of which 8 voted to make Truksnis mayor once again.
Opposition city council members left the meeting in an attempt to deny the necessary quorum, however, as Karina Sinkeviča (Harmony) did not leave, there were enough votes in support of Truksnis.
"Jurmala councilwoman Karina Siņkēviča has left the Harmony party after not following the party decision not to support Truksnis," tweeted LTV.
Iepriekš no amata gāzto Truksni ievēl par jauno Jūrmalas mēru. Par Gati Truksni balsoja astoņi domes deputāti. pic.twitter.com/lFeHHyEZA4
— LTV Ziņu dienests (@ltvzinas) November 4, 2016
On October 13 the council voted to unseat Truksnis, who was named as a suspect in an investigation over illegal party funding.
Truksnis' office and home was raided by the Corruption Prevention and Combating Bureau in early October.
But being investigated and even tried for large-scale graft is not historically a serious enough reason for a mayor to step down in Latvia. Aivars Lembergs, mayor of another seaside town, Ventspils, has been on trial for nine years on such charges.