An immediate spell can be cast as an immediate action. Using an immediate action prevents you from taking a swift action (or casting a quickened spell) on your next action. An immediate spell uses up a spell slot six higher than normal for the spell.