[4][11] Ceuta's position opposite the straits of Gibraltar gave it control of one of the main outlets of the trans-African Sudanese gold trade; and it could enable Portugal to flank its most dangerous rival, Castile.
[14] Loans were taken, foreign ships chartered, galleys repaired and new ones built, until 30 had been assembled by the admiral of Portugal Carlos Pesanha, and expenses closely controlled.
[4] Prince Henry, later surnamed 'the Navigator' was tasked with organizing the recruitment of men in the provinces of Beira and Trás-os-Montes and assemble them in the city of Porto.
In order to scout the defenses of Ceuta beforehand, King John nominated the Prior of Crato Dom Álvaro Gonçalves Camelo as ambassador to the then regent and heir of the Kingdom of Sicily Blanche of Navarre.
[4] Having successfully reached Sicily and received a negative reply, as King John had anticipated, they headed back to Portugal, again stopping at Ceuta.
[4] After returning to Portugal, at the royal Palace of Sintra Dom Álvaro drew for King John and the princes in private a map of Ceuta and its surrounding geography with sand and thread.
By occasion of a hunting trip in Montemor-o-Novo later, the king then disclosed the project to the Constable of Portugal, the renowned general Dom Nuno Álvares Pereira, who approved it in earnest.
[4] The secretive nature of the expeditions purpose caused numerous theories to rise among Portuguese society as to its true objective, some speculating the King meant to undertake a Crusade to the Levant, others to conquer the Kingdom of Sicily, still others (correctly) guessing Ceuta.
[18] Some French wrote to King Ferdinand of Aragon expressing their suspicion that the Portuguese were preparing to participate in the Hundred Years War alongside the English, in France.
[4] The Count had in fact been informed by King John of the true purpose of this phony embassy beforehand, hence he entertained Fogaça with a public audience in which he offered such a rude reply that it might be understood as a declaration of war.
[citation needed] Philippa presented her three eldest sons with jewel-encrusted swords, which they would use in their impending knighthoods, and gave each a portion of the True Cross, "enjoining them to preserve their faith and to fulfil the duties of their rank".
[21] At her death she prayed with several priests and, "without any toil or suffering, gave her soul into the hands of Him who created her, a smile appearing on her mouth as though she disdained the life of this world".
[4] A day of mourning was decreed, at the end of which Prince Henry commanded that all participants wear their best, the ships be decorated and trumpets be sounded with fanfare.
[4] Two days later, the entire fleet weighted anchor and departed from Lisbon, while the citizens and local inhabitants watched from the surrounding hills and beaches.
[4][23] From Sacavém, the Aragonese spy Ruy Dias de Vega wrote a few days later to the King of Aragon Ferdinand I that the objective of the expedition was rumoured to be either Ceuta or Gibraltar.
[24] From the mouth of the Tagus River, the Portuguese fleet sailed south along the south-western coast of Portugal and rounded the Cape St. Vincent on July 26, and that night anchored at Lagos.
[4] By late afternoon the Portuguese sighted Cape Espartel and turned out to sea, that night entered the Strait of Gibraltar and anchored by the Castilian town of Tarifa.
[25] King John then held a Council of war with his command while anchored off Punta Carnero, Spain, but he rejected the opinion of those who suggested calling off the attack.
He was followed by his brother, the prince-heir Edward, and at the head of about 300 men both succeeded in driving the Muslims defenders back to the Almedina gate, which was breached by the Portuguese before it could be securely shut.
Most of Ceutas residents fled the city, though a considerable number was killed in the action, and a few women, children and elderly unable to flee or take up arms could still be found in their houses.
[27][29] Álvaro Vaz de Almada, 1st Count of Avranches was first hoisted the flag of Lisbon (or of Saint Vicent) over the Ceuta castle per orders of the king.
[32] Appointing a governor proved unexpectedly difficult however, as many high-ranking nobles such as the Constable Nuno Álvares Pereira, the Marshal Gonçalo Vasques Coutinho and the head of the royal bodyguard Dom Martim Afonso de Melo all turned down the proposal of the king, but the Count of Viana Dom Pedro de Meneses willingly volunteered for the dangerous position.
[35] As soon as the Portuguese fleet returned home with most of the army, the residents of Ceuta who had sought refuge in the surrounding hills and orchards attempted to recover the city numerous times, however they were easily fought back by the garrison in almost daily skirmishes.
[38] In 1419, the Marinid Sultan of Morocco Abu Said Uthman III laid siege to Ceuta with the help of the Nasrid Emir of Granada Muhammad VIII in an attempt to recover it, however the Portuguese successfully repulsed the attack under the able command of Dom Pedro de Meneses.
Morocco descended into anarchic chaos, as rival pretenders vied for the throne and local governors carved out regional fiefs for themselves, selling their support to the highest bidder.
In time, Ceuta became a formidable military base, and one of the main havens for Christian privateering in the western Mediterranean, and the main base from which Portuguese ships raided hostile Muslim shipping from Salé to Granada and Tunis, an activity which yielded the captain of Ceuta Dom Pedro de Meneses and King John I valuable profits.
[35] Portuguese raids caused the Moroccan shores to be abandoned by a considerable number of inhabitants, who fled inland, while foreign trade gradually faltered.
In the resulting treaty, Henry handed his brother Ferdinand to the Moroccans as a hostage and promised to deliver Ceuta back to the Marinids in return for allowing the Portuguese army to depart unmolested.
The main area of Portuguese expansion, at this time, was the coast of Morocco, where there was grain, cattle, sugar, and textiles, as well as fish, hides, wax, and honey.