The action is the integral of the Lagrangian over time, or the integral of the Lagrangian Density over both time and space. I.e.
$$S=\int L\mbox{ d}t=\iiiint\mathcal L\mbox{ d}x^4$$
This is very useful in the Lagrangian reformulation of Classical Mechanics, where one may apply the least action principle to obtain the equations of motion.
Also useful in Quantum Mechanics, Quantum Field Theory, General Relativity, String Theory, and so on, due to the Path Integral and Variational formulations.