even though jerez and other towns fell, granadan forces were still actively attacking castilian positions. the "cantigas" mention an unsuccessful granadan siege of the chincoya castle, purportedly after the a statue of the virgin mary put on the ramparts discouraged the granadans from attacking. despite the failure in chincoya, muhammad i likely took many poorly defended castles along the border. in response to the granadan threat, towns in upper andalusia established a brotherhood pact at andújar on 26 april 1265, swearing cooperation and a common defense.