mid-15c., "food made with or from paste or having it as a principal ingredient," not originally limited to sweets, from Middle English paste (see paste (n.)) + -ry. Probably influenced by Old French pastoierie "pastry" (Modern French pâtisserie), from pastoier "pastry cook," from paste (see paste (n.)); also borrowed from Medieval Latin pasteria "pastry," from Latin pasta. Specific sense of "small confection made of pastry" is by 1906. Pastry-cook is attested from 1712.