In March 2014, Costa changed to the Spanish national team. This was when he was granted his Spanish citizenship. He made his first appearance against Italy and represented Spain in the 2014 FIFA World Cup.