The 22-year-old have signed a five-year contract with the Liga club.
Castro said: “Mallorca have been in the Primera Division for a long time so I hope I can do my very best and help achieve the club’s objectives.
“I have played in the national team with [former Mallorca player] Gonzalo de los Santos and he told me good things about the club.”