Posted to Spain, he fought at Almanara, Zaragossa and Villaviciosa, where his unit suffered heavy casualties. Lepell, by then senior British officer in Catalonia, reported his infantry regiment suffered over 107 casualties, and only two squadrons of dragoons were fit for action. The regiment was disbanded in November 1712 in the run-up to the 1713 Peace of Utrecht.