Altarpiece of Saint George
In 1237, during the conquest of the kingdom of Valencia, James I had gained control of the fortification of Puig Castle . With his troops weakened due to the conquests, he received the warning of a counterattack by the Muslim forces, in this way he marched towards Catalonia to gather more troops, leaving Guillem Aguiló in charge. In his absence, the Muslim king Zayyan ibn Mardanix attacked the fortification. During the battle, while part of his troops were fighting the Muslims, Guillem Aguiló advanced from behind the hill sounding numerous trumpets and carrying flags taken from nearby ships, with the royal pennant at the head, making the Muslims believe that it was of James I arriving with an army. According to Bernat Desclot's Chronicle, at that moment Saint George appeared with his own army of knights, allowing the Christians to win the battle.