 In 1647 he was appointed Spanish ambassador for Northeastern Europe, Denmark and Poland, with responsibility to keep an eye on Sweden.Pope Pius IV appointed him as his secret representative for Northern Europe with the mission to reconstruct the Catholic Church in Denmark and Sweden, which he did it.He became close friend with members of Denmark royal house who invited him to live in one of the royal family castles.