Invasion of Banu Qaynuqa Yathrib's marketplace was in the area of the town where the Qaynuqa lived. The Banu Qaynuqa were allied with the local Arab tribe of Khazraj and supported them in their conflicts with the rival Arab tribe of Aws. In March 624, Muslims led by Muhammad defeated the Meccans of the Banu Quraish tribe in the Battle of Badr. Jewish tribes, such as Banu Qaynuqa, expressed resentment towards this. The Banu Qaynuqa started a campaign of trouble making aimed at Muslims, jeering at them as well, harming those who went to their marketplaces, and intimidating Muslim women. Muhammad admonished them for
Army of the North victory. The battle was favorable to Balcarce even though he again had numerical inferiority (800 royalist against 600 rebels, and in Cotagaita 2,000 royalists against 1,100 rebels). Balcarce earned the rank of brigadier, and the confidence to advance towards the Desaguadero River, border of the viceroyalty in colonial times. Due to internal disagreements Castelli had to dismiss Güemes and his gaucho soldiers. The royalist defenses were left in charge of general José Manuel de Goyeneche, who met with Castelli and signed an armistice to last for forty days from 16 May. The army moved from the encampment at La Laja,