occurred at a different time, especially as the siege of Jaen in 1225 was unsuccessful and was thus still in Muslim hands in this year. Ferdinand was entrusted with the fortresses, and control was given to Álvaro Pérez de Castro, with the area occupied by troops from the military orders of Santiago and Calatrava. Andújar became a rendezvous point for Christian troops and armies who fought south of the Sierra Morena. The Muslim inhabitants of Andújar, Martos, and Baeza abandoned these towns at the end of 1226. In 1227, the first Christian inhabitants arrived at Baeza, Andújar and Martos, although some sources indicate that the repopulation of Andújar did not occur until 1228. In 1467, the title of City was granted to Andújar by Henry IV of Castile. Modern times During the Napoleonic Wars, the city was occupied by French troops in 1808. General Pierre Dupont de l'Étang, after conquering Córdoba, established his HQ at Andújar. From Andújar Dupont sent troops to Bailén, where he lost the battle there. After this battle, the capitulations were signed at Andújar in the Palace of Gracia Real. In 1835, the first Junta de Soberanía Central de Andalucía (Junta of Central Sovereignty of Andalusia) was established at Andújar; it is considered the pioneer of the autonomist movement in Andalusia. In 1873, Andújar was declared a federal canton. During the Spanish Civil War, Republican forces besieged a Nationalist force, led by Captain Santiago Cortés González, that had taken refuge in the Sanctuary of the Virgen de la Cabeza. The Siege of Santuario de Nuestra Señora de la Cabeza lasted one year. In 1937, the Nationalists, now entirely without food and supplies, with the walls of the sanctuary almost completely destroyed, were defeated. Cortés González was killed. The city was the scene of some massacres committed by Republican forces. Republican forces murdered Trinitarians, priests, nuns and Catholics. At the end of the war, killers were located, some Republicans responsible for the crimes were tried and shot. Climate Local holidays and customs Its Christian patron saints are the Virgen de la Cabeza and St. Euphrasius of Illiturgis. The most well-known local holiday is the Pilgrimage of the Virgen de la Cabeza, celebrated on the last Sunday of the month of April. During this pilgrimage, the faithful visit the sanctuary on the hill of the Cabezo. The local legend states that on the night of August 12, 1227,