With the main Ottoman army tied up in Europe, Mahmud II turned to Muhammad Ali to recapture the Arabian territories. Muhammad Ali in turn appointed his son, Tusun, to lead a military expedition in 1811. The campaign was initially turned back in Arabia; however, a second attack was launched in 1812 that succeeded in recapturing Hejaz.