Shortening is a solid fat used in baking to create a light, flaky texture in pastries, biscuits, cookies, and cakes by preventing gluten formation.