MP, or magic points, are required to cast spells. If the MP cost of a spell is greater than your remaining MP, you cannot cast that spell. MP slowly regenerates over time in and out of combat. MP can be regenerated by using items such as Ethers.
As of Patch 5.0 (Shadowbringers), the MP cap for all levels is 10,000.