Magic‎ > ‎Spells (Paizo)‎ > ‎F‎ > ‎

Forcecage


School evocation [force]; Level sorcerer/wizard 7

CASTING

Casting Time 1 standard action
Components V, S, M (ruby dust worth 500 gp)

EFFECT

Range close (25 ft. + 5 ft./2 levels)
Area barred cage (20-ft. cube) or windowless cell (10-ft. cube)
Duration 1 round/level (D)
Saving Throw Reflex negates; Spell Resistance no

By the way...
The effects of this spell do not move with a ship unless specifically anchored to the ship. Otherwise, a ship running into the effects makes a ramming maneuver.

Source Skull & Shackles Player's Guide