Malagasy cuisine (; ) encompasses the diverse culinary traditions of the Indian Ocean island of Madagascar. Foods eaten in Madagascar reflect the influence of Southeast Asian, African, Oceanian, Indian, Chinese and European migrants that have settled on the island since it was first populated by seafarers from Borneo between 100 CE and 500 CE. Rice, the cornerstone of the Malagasy diet, was cultivated alongside tubers and other Southeast Asian and Oceanian staples by these earliest settlers. Their diet was supplemented by foraging and hunting wild game, which contributed to the extinction of the island's bird and mammal megafauna. These food sources were later complemented by beef in the form of zebu introduced into Madagascar by East African migrants arriving around 1000 CE.

Trade with Arab and Indian merchants and European transatlantic traders further enriched the island's culinary traditions by introducing a wealth of new fruits, vegetables, and seasonings. Throughout almost the entire island, dishes comprising the contemporary cuisine of Madagascar typically consist of a base of rice served with an accompaniment; in the official dialect of the Malagasy language, the rice is termed vary (), and the accompaniment, laoka (). The many varieties of laoka may be vegetarian or include animal proteins, and typically feature a sauce flavored with such ingredients as ginger, onion, garlic, tomato, vanilla, salt, curry powder, or, less commonly, other spices or herbs. In parts of the arid south and west, pastoral families may replace rice with maize, cassava, or curds made from fermented zebu milk. A wide variety of sweet and savory fritters as well as other street foods are available across the island, as are diverse tropical and temperate-climate fruits. Locally produced beverages include fruit juices, coffee, herbal teas and teas, and alcoholic drinks such as rum, wine, and beer.

The range of dishes eaten in Madagascar in the 21st century reflects the island's history and demographic diversity. The complexity of Malagasy meals can range from the simple, traditional preparations introduced by the earliest settlers to the refined festival dishes prepared for the island's 19th-century monarchs. Although the classic Malagasy meal of rice and its accompaniments remains predominant, over the past 100 years other food types and combinations have been popularized by French colonists and immigrants from China and India. Consequently, Malagasy cuisine is traditional while also assimilating newly emergent cultural influences.

History Prior to 1650

Austronesian seafarers are considered to have been the first humans to settle on the island; the available evidence indicates that this first occurred sometime between the 5th and 7th centuries CE, though archaeological research into this has been limited. In their outrigger canoes they carried food staples from home including rice, plantains, taro, and water yam.Blench (1996), pp. 420–426 Sugarcane, ginger, sweet potatoes, pigs and chickens were also probably brought to Madagascar by these first settlers, along with coconut and banana. The first concentrated population of human settlers emerged along the southeastern coast of the island, although the first landfall may have been made on the northern coast.Campbell (1993), pp. 113–114 Upon arrival, early settlers practiced tavy (swidden, "slash-and-burn" agriculture) to clear the virgin coastal rainforests for the cultivation of crops. They also gathered honey, fruits, bird and crocodile eggs, mushrooms, edible seeds and roots, and brewed alcoholic beverages from honey and sugar cane juice.Sibree (1896), p. 333

Game was regularly hunted and trapped in the forests, including frogs, snakes, lizards, hedgehogs and tenrecs, tortoises, wild boars, insects, larvae, birds and lemurs. The first settlers encountered Madagascar's wealth of megafauna, including giant lemurs, elephant birds, giant fossa and the Malagasy hippopotamus. Early Malagasy communities may have eaten the eggs and—less commonly—the meat of Aepyornis maximus, the world's largest bird, which remained widespread throughout Madagascar as recently as the 17th century. While several theories have been proposed to explain the decline and eventual extinction of Malagasy megafauna, clear evidence suggests that hunting by humans and destruction of habitats through slash-and-burn agricultural practices were key factors. Although it has been illegal to hunt or trade any of the remaining species of lemur since 1964, these endangered animals continue to be hunted for immediate local consumption in rural areas or to supply the demand for exotic bush meat at some urban restaurants.

As more virgin forest was lost to tavy, communities increasingly planted and cultivated permanent plots of land. By 600 CE, groups of these early settlers had moved inland and begun clearing the forests of the central highlands. Rice was originally dry planted or cultivated in marshy lowland areas, which produced low yields. Irrigated rice paddies were adopted in the highlands around 1600, first in Betsileo country in the southern highlands, then later in the northern highlands of Imerina.Campbell (1993), p. 116 By the time terraced paddies emerged in central Madagascar over the next century, the area's original forest cover had largely vanished. In its place were scattered villages ringed with nearby rice paddies and crop fields a day's walk away, surrounded by vast plains of sterile grasses.Gade (1996), p. 105

Zebu, a form of humped cattle, were introduced to the island around 1000 CE by settlers from east Africa, who also brought sorghum, goats, possibly Bambara groundnut, and other food sources. Because these cattle represented a form of wealth in east African and consequently Malagasy culture, they were eaten only rarely, typically after their ritual sacrifice at events of spiritual import such as funerals. Fresh zebu milk and curds instead constituted a major part of the pastoralists' diet.Linton (1928), p. 386 Zebu were kept in large herds in the south and west, but as individual herd members escaped and reproduced, a sizable population of wild zebu established itself in the highlands. Merina oral history tells that highland people were unaware that zebu were edible prior to the reign of King Ralambo (ruled 1575–1612), who is credited with the discovery, although archaeological evidence suggests that zebu were occasionally hunted and consumed in the highlands prior to Ralambo's time. It is more likely that these wild herds were first domesticated and kept in pens during this period, which corresponds with the emergence of complex, structured polities in the highlands.

Foods were commonly prepared by boiling in water (at first using green bamboo as a vessel, and later clay or iron pots),Linton (1928), p. 367 roasting over a fire or grilling over hot stones or coals. Fermentation was also used to create curds from milk, develop the flavor of certain dried or fresh tubers or produce alcoholic beverages from honey, sugar cane juice or other local plants. The techniques of sun curing (drying), smoking and salting were used to preserve various foods for transport, trade or future consumption. Many foods prepared in these ways, such as a smoked dried beef called kitoza () and salted dried fish, are still eaten in a similar form in modern-day Madagascar.Grandidier (1899), p. 521

By the 16th century, centralized kingdoms had emerged on the west coast among the Sakalava and in the Central highlands among the Merina. The Merina sovereigns celebrated the new year with an ancient Merina ceremony called the Royal Bath (fandroana). For this ceremony, a beef confit called jaka () was prepared by placing beef in a decorative clay jar and sealing it with suet, then conserving it in an underground pit for a year. The jaka would be shared with friends at the following year's festival. As a dessert, revelers would eat rice boiled in milk and drizzled with honey, a preparation known as tatao (). According to oral history, King Ralambo was the originator of these culinary traditions in Imerina. Ralambo's father, King Andriamanelo, is credited with introducing the marriage tradition of the vodiondry () or "rump of the sheep," wherein the most favored cut of meat—the hindquarters—was offered by the groom to the parents of the bride-to-be at an engagement ceremony. In contemporary Malagasy society the terminology persists but families are more likely to offer symbolic coins in place of an offering of food.

1650–1800 The advent of the trans-Atlantic slave trade increased maritime trade at Malagasy ports, including food products. In 1696, a trading vessel en route to the American colonies reportedly took a stock of local Malagasy rice to Charleston, South Carolina, where the grain formed the basis of the plantation industry.Campbell (1993), pp. 131 Trading ships brought crops from the Americas—such as sweet potato, tomato, maize, peanuts, tobacco and lima beans—to Madagascar in the 16th and 17th centuries; cassava arrived after 1735 from a French colony at nearby Réunion Island. These products were first cultivated in coastal areas nearest to their ports of arrival, but soon spread throughout the island; within 100 years of their introduction they were widespread throughout the central highlands.Campbell (1993), p. 117 Similarly, pineapple and citrus fruits such as lemons, limes, oranges, consumed by sailors to ward off scurvy on long cross-Atlantic trips, were introduced at coastal Malagasy ports. Local cultivation began soon afterward.Campbell (1993), pp. 127, 142

The prickly pear cactus or raketa (), also known in southern Madagascar as sakafon-drano () or "water food", was brought from the New World to the French settlement at Fort Dauphin in 1769 by Frenchman Count Dolisie de Maudave. The plant spread throughout the southern part of the island, where it became a fundamental food crop for Mahafaly and Bara pastoralists. Consuming six or so of the fruits of this plant preempted the need to drink water, and once the spines had been removed, the cladodes of the plant would nourish and hydrate the zebu cattle they tended. The introduction of this plant enabled the southern pastoralists to become more sedentary and efficient herders, thus boosting population density and cattle count in the region.

1800–1896

The 18th century in the central highlands was characterized by increasing population density and consequent famines, aggravated by warring among the principalities of Imerina. At the turn of the 19th century, King Andrianampoinimerina (1787–1810) successfully united these fractious Merina groups under his rule, then used slaves and forced labor—exacted in lieu of taxes for those without means to offer material payment—to systematically work the irrigated rice fields around Antananarivo. In this way, he ensured regular grain surpluses that were sufficient to consistently feed the entire population and export products for trade with other regions of the island. Marketplaces were established across the island to serve as central trading points for designated commodities such as smoked and dried seafood and meats, dried maize, salt, dried cassava and various fruits.Campbell (1993), p. 125 Rice cakes, including mofo gasy () and menakely (), were also sold by market vendors. By this period, coastal cuisine had likewise evolved: early 19th-century voyagers reported eating dishes on Île Sainte-Marie prepared with curry powder (including a spiced rice resembling biryani) and drinking coffee and tea. Andrianampoinimerina's son, Radama I, succeeded in uniting nearly the entire island under his rule, and established the Kingdom of Madagascar. A line of Merina monarchs continued to govern the island until its colonization by the French in 1896.