Ryan was captured during the Aragón offensive on 1 April 1938 and was held at the Miranda del Ebro detention camp. He was sentenced to death but after representations from Éamon de Valera his sentence was commuted to thirty years hard labour.