On July 24, 1505, Portuguese forces under Francisco de Almeida, first Viceroy of India, attacked and sacked Kilwa Kisiwani, installing a compliant puppet sultan and constructing Fort Santiago. The assault followed years of Portuguese pressure to control Indian Ocean trade routes connecting Europe to Asia via the Cape. By seizing both Kilwa and Sofala within the same expedition, Portugal severed the gold trade circuit that had made Kilwa the dominant Swahili city-state for three centuries. The sack marked the end of independent Swahili Coast trade and the beginning of Portuguese colonial control of East African commerce.