To mainline is to inject a drug directly into a major vein. Often done with illegal drugs, such as heroin.