Hold a strip of magnesium in a flame and it burns with a blinding white light, leaving a white powder: 2Mg+O2→2MgO. Two substances went in and one came out. That is the signature of a synthesis reaction, A+B→AB: count the products, and if there is exactly one, the reaction is building something up. The reactants can be two elements, an element and a compound (2CO+O2→2CO2), or two compounds (CaO+H2O→Ca(OH)2).
The pattern lets you predict products. A reactive metal with a nonmetal makes an ionic compound whose formula comes from the charges: sodium (Na+) and chlorine (Cl−) give NaCl, aluminium (Al3+) and oxygen (O2−) give Al2O3. A metal oxide with water gives a metal hydroxide, and a nonmetal oxide with water gives an acid, as in SO3+H2O→H2SO4. Once the product is written, balance the equation: 4Al+3O2→2Al2O3.
Burning methane, CH4+2O2→CO2+2H2O, also combines a substance with oxygen, but it makes two products, so it is a combustion and not a synthesis. Some reactions earn both labels: burning magnesium is a combustion and a synthesis at once. The test for synthesis is always the number of products, not whether oxygen or a flame is involved.
Think of it like this. Synthesis is like snapping several pieces into one finished model: many parts go in, one assembled object comes out, and every piece is still there inside it. Unlike plastic bricks, though, the new substance has properties of its own: soft, reactive sodium and poisonous chlorine gas become harmless table salt.
Core idea. A synthesis reaction has two or more reactants and exactly one product, A+B→AB. Counting the products identifies it, and the reactants' charges let you predict the product's formula.