Ravier was elected to the Senate in 2014 and reelected in 2020—alongside David Rachline, they became the first Front National candidates elected to the Senate.[1] He was his party's top candidate in the 2014 and 2020 municipal elections in Marseille, in which he led lists that respectively placed second and third. He has been a municipal councillor of Marseille since 4 April 2014. He held the mayorship of 7th sector of Marseille (13th and 14th arrondissements) from 11 April 2014 to 22 September 2017.[1]
In February 2022, during Marine Le Pen's presidential campaign, Ravier publicly endorsed far-right presidential rival Éric Zemmour. He subsequently joined his new Reconquête party.[2] He is currently one of two members of Reconquête in the Senate alongside Sébastien Meurant of Val-d'Oise. He left Reconquête in 2024.