The Short Answer
No. Spain never colonized Indonesia. That question comes up enough that I've stopped being surprised by it. People mix up the colonial powers in Southeast Asia because the map is crowded and the timelines overlap. Portugal held parts of the Maluku Islands for a century. The Dutch built the VOC and eventually controlled most of what became Indonesia. The British had a brief occupation during the Napoleonic Wars. Spain had the Philippines to the north and was focused on the Americas. They never put boots on Indonesian soil in any meaningful colonial sense. The confusion makes sense if you look at the geography. The Spanish and Portuguese empires split the world in half in 1494 with the Treaty of Tordesillas. Portugal got Brazil, Africa, India, and the Spice Islands. Spain got the rest of the Americas and, crucially, the Philippines, which they took in 1565. Indonesia sat squarely in the Portuguese and later Dutch sphere. There was no economic or strategic reason for Spain to push south from the Philippines into Indonesian territory. I've run into this exact mix-up when advising people researching their family histories in Southeast Asia. Someone will find an old Spanish colonial document mentioning "Indias" or "East Indies" and assume it refers to Indonesia. It doesn't. In Spanish colonial records, "Indias Orientales" usually meant the Philippines or was used as a loose geographic term for the general region. I spent an afternoon tracking down what turned out to be a Spanish missionary log from Ternate in 1606. Ternate is in the Maluku Islands. The Spaniards had a brief trading post there, but it lasted less than two years before they were pushed out by the Portuguese and local sultans. No colonization. No administration. Just a footnote in a port that was already dominated by other powers.
Here's the nuance most sources skip. While Spain never colonized Indonesia, there were indirect Spanish influences that show up in specific places. Spanish missionaries did operate in parts of eastern Indonesia, particularly in Flores and Timor, during the 17th and 18th centuries. These were Catholic missionary efforts, not colonial governance. The Dominican and Franciscan orders worked in areas where the Dutch East India Company had little interest in governing directly. This created a strange patchwork: Dutch Protestant control in Java and Sumatra, Portuguese-speaking Catholic communities in Timor, and small Spanish missionary enclaves scattered through eastern islands. None of it amounted to colonization. If you're looking at this from a research angle, the practical problem is that Spanish-language archival material about Indonesia exists but is sparse and poorly indexed. The Archivo General de Indias in Seville has documents that mention Indonesian ports and spices, but cataloging is inconsistent. I've found that searching by ship name or specific trader rather than by modern country name yields far better results. A document might reference "islas de las Especias" or "Tidore" without ever using the word Indonesia, which didn't exist as a concept until the 20th century anyway. Another thing beginners miss when they ask this question is that Indonesia as a unified entity didn't exist during the colonial period. The archipelago was hundreds of separate sultanates, chiefdoms, and trade networks. When someone asks whether Spain colonized Indonesia, they're really asking whether Spain colonized a collection of islands that would later become one country. The answer is still no, but the framing matters because it explains why the colonial history is so fragmented. Different islands had different colonial experiences. Aceh was never fully colonized by anyone. Bali maintained its kingdoms under loose Dutch influence. The Batak highlands in Sumatra were essentially independent until the early 1900s.
There's also the matter of the Spanish-Moro conflicts. The Sultanate of Sulu, which had territories spanning parts of what is now southern Philippines and eastern Borneo, had occasional interactions with Indonesian populations across the Makassar Strait. Spanish colonial forces in the Philippines raided Sulu and neighboring areas for centuries, and some of those raids touched waters near Indonesian territory. But again, this was Spanish versus Sulu, not Spanish versus Indonesia. The Dutch VOC actually allied with certain Indonesian sultanates against Moro pirates at times, which is another layer of complication that gets lost in simplified histories. The deeper reason people ask about Spanish colonization of Indonesia is that they're trying to make sense of the religious and cultural diversity of the region. Indonesia is predominantly Muslim but has significant Christian populations, especially in the east. People hear "Christian in Indonesia" and immediately think colonialism. The reality is more complicated. Christianity in Indonesia arrived through multiple channels: Portuguese Catholicism in Timor and Flores, Dutch Protestantism in Java and Sulawesi, American Protestant missions in the 19th and 20th centuries, and yes, some Spanish Catholic missionary activity. None of these are exclusive to any single colonial power, and many predate European contact entirely through trade networks with Indian and Arab merchants. If you want a reliable starting point for actual research, the work of Anthony Reid on Southeast Asian trade history is the standard reference. His three-volume work on the region covers the Spanish presence and explicitly details why Spain never established colonial rule in the Indonesian archipelago. The bottleneck most researchers hit is that Reid's work is dense and assumes familiarity with the period. A more accessible option is the Cambridge History of Southeast Asia, which has clearer chronological organization. Both will confirm the same thing: Spain had maritime interests in the region but never pursued territorial colonization of Indonesian lands.
Get the Full Details

The practical takeaway is that when you encounter references to Spain and Indonesia together, they almost always relate to trade, missionary activity, or diplomatic correspondence, not administration or settlement. The Dutch left behind administrative records, infrastructure, legal systems, and a language of governance. Spain left nothing of the sort in Indonesia because they never built anything there to begin with.