ATP is the main energy source for the majority of cellular functions. This includes the synthesis of macromolecules, including DNA and RNA (see below), and proteins. ATP also plays a critical role in the active transport of macromolecules across cell membranes, e.g. exocytosis and endocytosis.