He began his military career at the Battle of Alcácer Quibir, where he was captured by the Arabs, but he was subsequently released by the intervention of the King of spain, Philip II, whom Castro began to support in the War of the Portuguese Succession. Castro participated in the Conquest of the Azores, which meant Philip's victory in the war.