Hydrolysis of ATP, the removal of a phosphate group, is a highly exergonic process, and when coupled with the process of moving solutes against their concentration gradient, the net delta g for both processes will be negative and hence the process is now thermodynamically favorable.