Anzhi Makhachkala have confirmed the signing of Brazil midfielder Willian from Shakhtar Donetsk for €35 million.

Willian, 24, had been linked to Chelsea or Tottenham in recent weeks but has instead signed a "long-term deal" with the Russian Premier League club, announced via their official website on Friday night.

Anzhi swooped late on Thursday for the playmaker, and have now completed the most expensive deal of the January transfer window.

A statement on the Shakhtar website read: "FC Shakhtar and FC Anzhi reached an agreement regarding Willian's move to the Russian club in a transfer worth 35million euros.

"Shakhtar thanks Willian for the years spent at the club, for his goals and professionalism. We wish our former player success in his new team."

In all since joining Shakhtar from Corinthians in 2007, Willian has played 221 games for the club, scoring 37 goals.

The player will join up with his new team-mates at a training camp in Marbella on Saturday.He joins a number of fellow Brazilians in the Anzhi squad, as well as high-profile names Samuel Eto'o and Lassana Diarra.

© ESPN Sports Media Ltd.