Battle of Uhud and forced the Meccan lines back, thus leaving much of the Meccan camp unprotected. When the battle looked to be only one step away from a decisive Muslim victory, a serious mistake was committed by a part of the Muslim army, which altered the outcome of the battle. A breach of Muhammad's orders by the Muslim archers, who left their assigned posts to despoil the Meccan camp, allowed a surprise attack from the Meccan cavalry, led by Meccan war veteran Khalid ibn al-Walid, which brought chaos to the Muslim ranks. Many Muslims were killed, and Muhammad himself was badly injured.
Army of the Three Guarantees Three Guarantees was created on February 24, 1821, and continued battling Spanish royalist forces which refused to accept Mexican independence. These battles continued until August 1821, when Iturbide and Spanish Viceroy Juan de O'Donojú signed the Treaty of Córdoba, virtually ratifying Mexico's independence. The Army was a decisive force during the Battle of Azcapotzalco. The victory in this last battle of the war cleared the way to Mexico City. On September 27, 1821, the Army of the Three Guarantees triumphantly entered Mexico City, led by Iturbide. The following day Mexico was declared independent. By that time, the Army of the