Grappa is made by distilling the skins, pulp, seeds, and stems (ie, the pomace) left over from winemaking after pressing the grapes It was originally made to prevent waste by using these leftovers.
The flavor of grappa, like that of wine, depends on the type and quality of the grapes used, as well as the specifics of the distillation process.