Liverpool have confirmed that Nuri Sahin's loan deal at the club has been cancelled, with the Real Madrid midfielder heading to former club Borussia Dortmund on a temporary basis for the second half of the season.

"Liverpool Football Club have confirmed an agreement has been reached with Real Madrid allowing midfielder Nuri Sahin's loan deal to end, so he can join another club with immediate effect," the club said in a statement.

Sahin made 12 appearances for the club during his stay at Anfield, scoring three times.

He was voted the Bundesliga's player of the year at the end of the 2010-11 season, when he inspired Dortmund to their first title since 2002.

However, he left to join Real that summer, signing a contract until 2017, but made little impression in Spain after struggling to overcome injury and could not break into the first team.

The Turkish international was loaned out to Liverpool in August, but could not establish himself at Anfield either and has opted for a return to Germany after being linked earlier this month.

"Nuri is back," Dortmund chief executive Aki Watzke said. "We have always said the door would be open for Nuri, if he feels like wanting to play for Dortmund again. A few days ago he approached us and we kept our promise. We are delighted."

Sahin added: "I am happy to be back home. Over the past 18 months I have always been in contact with BVB officials, players and coaches. I hope I can help the team as soon as possible."