On 28 January 2020, after being rarely used, Gallego was loaned to fellow league team CA Osasuna with an obligatory buyout clause if the team avoid relegation. In July, after this was achieved, he signed a permanent contract until 2022 for a €2 million fee.