Latvia's prime minister says he will resign next month, bowing to weeks of pressure triggered by his attempt earlier this year to fire the country's anti-corruption chief.

Aigars Kalvitis said he will leave office December 5, after parliament passes a budget and completes a border agreement with Russia.

Mr. Kalvitis had come under broad criticism from an increasingly hostile parliament, after firing anti-corruption head Aleksejs Loskutovs in October.  The firing also triggered two large street protests. 

A week later, his government survived a no-confidence vote, but four members of his cabinet either resigned or were fired as political tensions simmered.  The prime minister was forced to reinstate the anti-corruption chief after parliament refused to ratify the firing.

Mr. Kalvitis is Latvia's longest serving prime minister since the country regained its independence from Soviet rule in 1991. He will mark three years in office December 2.

Some information for this report was provided by AP and Reuters.