Malaga have continued their summer spending spree by agreeing a deal to sign Joaquin from Primera Liga rivals Valencia.
The former Spain winger, who made 51 appearances for his country, will become Malaga's seventh recruit since the end of the season.
He has been at Valencia for the past five years after moving to the Mestalla in a club-record deal from Real Betis in 2006.
The 29-year-old is now on his way to Malaga for a fee reported to be worth in the region of €4million having previously cost Betis €25million (£22.2m).
"The two entities have closed an agreement so that the player from Puerto de Santa Maria can become the seventh incorporation for next season," Malaga announced on their official website.
"He will complete his commitment in the coming days."
Joaquin will join Argentines Diego Buonanotte and Martin Demichelis, Dutch duo Joris Mathijsen and Ruud van Nistelrooy, Spanish defender Nacho Monreal and French midfielder Jeremy Toulalan as new faces at Malaga.
The club have been bought by a member of the Qatari royal family and after finishing 11th in La Liga last month have continued to build a squad they hope will challenge for a European qualification berth next season.