Eric Finkbeiner, Gov. Robert McDonnell’s senior policy adviser and a member of his Cabinet, will leave the administration next month.

His departure — and a shake-up in the policy shop — had been rumored for weeks.

Finkbeiner will return to McGuireWoods, where he previously worked as a law partner and senior vice president of its public affairs subsidiary, McGuireWoods Consulting. His new job will include policy development for the Republican Governors Association, of which McDonnell is the vice chairman and his top political adviser Phil Cox is executive director.

His last day will be June 10.

“Eric’s commitment to enacting positive public policies to benefit all Virginians,’’ McDonnell said in a statement. “Eric has a heart for public service. The long hours he put in over the past several years through the campaign, transition and my administration are a demonstration of that admirable trait.”

Finkbeiner, who worked on McDonnell’s campaign and transition, had successes and failures during his two legislative sessions — $2.9 billion in bonds for perennially clogged roads, $100 million for under-funded colleges, the defeat of a proposal to privatize the state’s liquor stores and only modest reforms the state’s pension system.

“It was my great pleasure and true honor to play a role in helping Governor McDonnell achieve such great public policy victories early in his administration,’’ Finkbeiner said.