He was then identified by the foreign media as the great new hope of the Russian opposition because he was hip, he was cool, he was everything that Russian leaders, whether in power or in opposition, have traditionally not been.
His new political prominence promptly attracted the usual state-sponsored charges of corruption and, on July 18, Navalny was found guilty of embezzlement (by a judge who has never issued a not-guilty verdict) and sentenced to five years in prison.
But then something odd happened.
The state prosecutor asked that Navalny be left free pending his appeal, which could take months.
Navalny is running for mayor of Moscow in the election on September 8. If he were in jail pending his appeal - the normal situation in politically motivated trials - he would have to drop out. Why is the state suddenly being nice to him?
Because it wants him to run and lose - and it's sure he will lose.
The opinion polls give Navalny just over 10 per cent of the vote, compared to more than 50 per cent for the incumbent mayor, Sergei Sobyanin. Navalny's presence on the ballot papers will lend some credibility to Sobyanin's re-election, Navalny's defeat will demonstrate how little popular support he actually has - and afterwards they'll whisk him off to prison.
But why does Navalny have so little popular support? Why do Russians put up with being ruled by Putin, an autocrat who no longer steals public money himself, but whose colleagues and cronies all steal? (Putin made his secret pile back in the early 1990s, when he was a rising politician in the first post-Communist city government of St Petersburg.)
Well, before Putin came to power in 2000 they put up with eight years of Boris Yeltsin, a boorish drunk who not only stole from the Russians (as did most of his political allies) but also embarrassed them. Before that there was a brief interlude of honesty and sanity under Mikhail Gorbachev - but he is blamed by most Russians for all the bad things that have happened since the fall of the Soviet Union.
And before that there was the Era of Stagnation, the last decades of Communist rule, when the state didn't murder its own citizens so much any more, but everybody lived in relative poverty under a perpetual rain of brazen lies, and endured the constant insults and petty criminality of an arrogant Communist elite. Fifty years in which the politicians who ran Russia have almost all been brutal, contemptible, or both.
So the great mass of Russians have given up believing that any politician could be honest, or that anything could ever really change. Some urban sophisticates are drawn to Navalny's post-modern style and his relentless critique of the Russian political system, but even in large parts of Moscow and St Petersburg, and almost everywhere outside the big cities, that sort of thing has no pulling power at all.
Putin's macho style no longer wins him the old adulation either: a recent poll by the Levada Centre found that nearly half of all Russians want him to step down at the end of his current presidential term in 2018. But they're not in any hurry about it, and Navalny won't be out of jail in time to run in the 2018 election anyway.
Gwynne Dyer is an independent journalist whose articles are published in 45 countries.