By the end of 1968, he had returned to La Liga, and after a brief spell at Córdoba CF, he became coach of the Spain national team. Kubala ended the team's 11-year absence from the World Cup when he guided the team to the 1978 World Cup, but could not steer them through the first-round group stage. He also managed them at Euro 80, where they were again eliminated in the first round.