A Javanese word, an American chilli
The strangest fact about sambal is that the word is older than the chilli. The relish existed in Java before a single Capsicum plant grew there. When chillies arrived from the Americas in the 16th century, they did not create sambal. They took it over.
English took sambal from Malay, and Malay took it from Javanese sambel. Dictionaries trace the Javanese word further back to Old Javanese, and some suggest a link to Tamil and Sanskrit words for spice mixtures, though that step is not settled. What is settled is that a pounded, pungent relish eaten with rice is very old in Java, and that Java still has more kinds of it than anywhere else.
The heat in that early relish could not have come from chillies. Every chilli now grown in Southeast Asia, from the fat red cabai merah to the tiny cili padi, descends from plants domesticated in Mexico and South America. They reached the archipelago in the 1500s, carried by Portuguese and Spanish ships in the great swap of crops between the Americas and the rest of the world.
Ancient Javanese texts name cabya as a traded hot spice. It was almost certainly Javanese long pepper, Piper retrofractum, now called cabe jawa. The modern word for chilli, cabai or cabe, was simply moved onto the new plant.
In modern Javanese lombok means chilli. The 14th-century Majapahit poem Nagarakretagama already uses the word, as an island name, two centuries before capsicum arrived. Like cabya, it probably meant a native pepper first.
In North Sulawesi chilli is rica; in West Sumatra it is lado; in Malaysia and Singapore it is cili. The dishes keep the local word: ayam rica-rica, ayam balado, sambal cili.

Why the chilli won so fast
Long pepper and black pepper were valuable export goods. Chillies were not: they grew easily in almost any soil, fruited within months and could be dried and kept for a year. Within a few generations the new plant had become the cheap, everyday source of heat in a cuisine that already had a place for one. The relish kept its name, its stone mortar and its shrimp paste, and swapped its pepper.
That swap also explains the colour. Old pepper relishes would have been brown or green. Ripe capsicums are full of red pigments that dissolve in oil, so a sambal fried in oil turns the oil red, and red became the colour of the whole family.
Where sambal lives now
In 2017 the Gadjah Mada University food researcher Murdijati Gardjito catalogued more than 250 sambals in Indonesia, about 212 of them with a clear place of origin. Java accounts for around 43 percent. Cooked sambals dominate in the west of the archipelago; raw ones in the east. The Malay peninsula and Singapore lean heavily cooked, which is why chicken sambal there is a simmered, glossy dish rather than a plate with a pot of relish on the side.
Java
The heartland. Sambal terasi ground fresh on the cobek, eaten raw with fried chicken, tempeh and raw vegetables (lalapan). Home of penyet and geprek.
Sumatra
The Minangkabau of West Sumatra fry coarse chilli with shallot, often without shrimp paste: balado. Their restaurants, rumah makan Padang, carried it across the region.
The Malay peninsula and Singapore
Sambal tumis: dried chillies, shallots and belacan fried down with tamarind and sugar. The base for sambal chicken, sambal prawns, sambal eggs and the sambal on nasi lemak.
Sulawesi and the east
Fresh, raw, fierce. Manado's rica-rica paste of bird's-eye chilli, ginger and lemongrass, and dabu-dabu, a raw chopped chilli and tomato relish.