Strictly speaking, a tannin is a compound that is capable of interacting with proteins and precipitating them; this is the basis of the process of tanning animal hides (hence the name tannin) and is also a process that is believed to be responsible for the sensation of astringency.