Cocaine is a tropane alkaloid that acts as a central nervous system stimulant. As an extract, it is mainly used recreationally, and often illegally for its euphoric and rewarding effects.