Bone Prison is a skill used by Diablo to enclose Town Portals, and trap your character. Although it has the same name, it is not the same skill as the Necromancer's Bone Prison.
When Bone Prison is cast, your Town Portal will be ensnared by several long, curved bone spires that look like giant ribs or tusks. They will be called "An Evil Force" if you hold your mouse over them.
Diablo is capable of casting Bone Prison from quite a long distance, so you may find your Portals trapped even if you have been fighting the Lord of Terror a screen or more away. Diablo often won't follow you that far if you run from him, so you may still be able to smash the evil force without immediate risk, however, this can still be quite dangerous as you probably ran because you were about to die. To play it safe, you can open Town Portals very far from the battle zone, such as near one of the five seals. You can also simply open another Town Portal, if you have a tome or scrolls. However, these methods are useless if you are the one trapped. At this time, the only reasonable safe method for escaping from one is to destroy it as fast as possible, or, if you're lucky, open a Town Portal inside* (Note, however, that as Town Portals return you to the same place, and the "Evil Force" has a very long duration (It is unconfirmed if it expires, due to the fact that most players stuck in one were more concerned about escaping before they died), it is safest to return through an alternate method, such as a Waypoint).
In Diablo III, this skill summons several Prisons, one by one, and instead of blocking a portal, it imprisons the player, allowing Diablo to teleport to them and drain a huge portion of their Life. Aside from him, this skill is also used by Inquisitor Sebacious.
Other demons such as Izilech the Misshapen, Catarag the Strangling Sun, and Rasplet Weavers have been shown to use this skill.
Damaging Skills
Fire — Fire Arrow • Fireball • Fire Bolt • Fire Hit • Firestorm • Fire Wall • Flame Circle • Hydra • Incineration Nova • Inferno • Meteor
Ice — Arctic Blast • Blizzard • Cold Touch • Fire Hit (Cold) • Freezing Charge • Glacial Spike • Hoarfrost
Poison — Poison Bolt • Poison Breath • Poison Cloud • Poison Spit • Poison Spray • Poison Sting • Poison Strike
Lightning — Lightning • Lightning Arrow • Lightning Globe • Red Lightning Hose • Shocking Hit • Spark Defense
Physical — Blow Dart • Charge • Corpse Cannon • Destructive Strike • Ground Tentacle • Leap • Leech-life Ball • Quill Dart • Slam
Magic — Bone Spirit • Hellish Projectile • Unholy Bolt
Non-damaging Skills
Indirect Attack — Blood Mana • Curses • Mana Rift • Minion Frenzy • Putrify • Spin Web • Stun
Spawning — Bone Prison • Festering Appendages • Lay Egg • Revive • Summon Minion
Self-effect — Bone Armor • Burrow • Fly • Frenzy • Heal • Teleport • Vile Effigy