The Seventh India Armada was assembled in 1505 on the order of King Manuel I of Portugal and placed under the command of D. Francisco de Almeida, the first Portuguese Viceroy of the Indies. The 7th Armada set out to secure the dominance of the Portuguese navy over the Indian Ocean by establishing a series of coastal fortresses at critical points – Sofala, Kilwa, Anjediva, Cannanore – and reducing cities perceived to be local threats (Kilwa, Mombasa, Onor).
By 1504, the Portuguese crown had already sent six armadas to India. The expeditions had unwisely opened hostilities with Calicut (Calecute, Kozhikode), the principal entrepot of the Kerala pepper trade and dominant city-state on the Malabar coast of India. To counter the power of the ruling Zamorin of Calicut, the Portuguese had forged alliances and established factories in three smaller rival coastal states, Cochin (Cochim, Kochi), Cannanore (Canonor, Kannur) and Quilon (Coulão, Kollam).
When the Portuguese India Armadas were in India (August to January), the Portuguese position in India was safe – the Calicut fleet was no match against the superior Portuguese naval and cannon technology of the armada. But in the spring and summer months, when the armada was absent, the Portuguese factories were very vulnerable. The armies of the Zamorin of Calicut had nearly overrun Cochin twice in the intervening years. The Fifth Armada (1503) under Afonso de Albuquerque had erected a small timber fortress, (Fort Sant'Iago, soon to be renamed Fort Manuel), to protect the factory in Cochin. The Sixth Armada (1504), under Lopo Soares de Albergaria had dropped off a larger Portuguese garrison and a small coastal patrol to harass Calicut and protect the allied cities. But this was not nearly enough against a Zamorin that could call on an army of tens of thousands. While the Zamorin's vast army had been humiliated at the Battle of Cochin (1504), it was a close-run thing, and he might have better luck next time.