Apples contain malic acid, which contributes to the sourness of a green apple.
Malic acid can make a wine taste tart, although the amount decreases with increasing ripeness. The process of malolactic fermentation converts malic acid to much milder lactic acid.
This article is a stub. You can help Wikipedia by fixing it.