RAM is the primary storage area for your computer. On a Mac, it's located on the motherboard and is used to store data while it's being processed by the CPU. Data stored in RAM has the shortest access time, which means that things like changing applications and opening files happen very quickly when you're using RAM.
As opposed to hard drives, which are non-volatile (store data even when turned off), RAM is volatile (lose its contents when turned off).