Catnip is a plant that contains a chemical compound called nepetalactone, which has an effect on cats when they smell it. When cats encounter catnip, they often become more active, rolling around, rubbing against the plant, and purring. They may also drool, meow, and even become aggressive. The effects typically last for about 10 minutes before wearing off.