A shekara ta 1775, an ba O'Reilly umurnin manyan
Rundunar Mutanen Espanya ta kai hari kan Algiers. Ko da yake wannan yakin Arewacin Afirka ya zama bala'i, babban sunan O'Reilly bai lalace ba, kuma ya ci gaba da aiki a matsayin kyaftin janar a kudancin Spain.