Lidiane Leite went on the run in August 2015 when she was accused of pocketing funds from Bom Jardim in Brazil’s north-west.
She had previously shared snaps of parties, expensive clothes, and luxury motors on her Instagram.
The 27-year-old directed local officials using WhatsApp as she lived a life of luxury 180 miles away in Sao Luiz.
The scandal started when her ex-boyfriend Humberto Dantas dos Santos was banned from serving as mayor of the town in 2012 due to corruption allegations.
Shortly afterwards, she ran and appointed him as her chief adviser.
The couple broke up three years later and authorities began to investigate her.
Leite gave herself up after 39 days on the run and was sentenced to 14 years and one month in jail followed by six years of house arrest.
She was found guilty of taking R$20 million (£4.5 million) from the town’s education fund.
Humberto is still on the run but was also sentenced to 17 years and nine months in prison.
“I can buy whatever I want. I’m going to spend money on what I want and I don’t care what people say about me”
Bom Jardim is a poor town of around 40,000 people in Rio de Janeiro, one of the country’s most impoverished states.
Many families rely on schools to give their kids at least one decent meal a day.
As locals suffered, Leite bragged about her luxurious life on Instagram.
In one post she wrote: “Before I became mayor, I was poor. I had a Land Rover, now I drive a Toyota SW4.
“Maybe I should buy a more luxurious car, because – thank you God – I have enough money to do it.
“I can buy whatever I want. I’m going to spend money on what I want and I don’t care what people say about me.”