This type of reaction is called dehydration reaction or dehydration synthesis.
The example is the synthesis of disaccharides. When two monosaccharides, such as glucose and fructose, join together (to form sucrose) they form glycosidic linkage via dehydration reaction, the water is released.