The energy-dependent movement of substances across a membrane, often against a concentration or electrochemical gradient. Transport may use ATP directly or an ion gradient; intestinal glucose uptake through sodium–glucose cotransport is an example of secondary active transport.