Including all of the articulations between your ribs, sternum, and vertebrae, you have approximately 170 joints in your body. More, actually, as some of your joint areas like your ankles, knees, wrists, and elbows have multiple joints within their functional units.
All of your 170 functional joints have two common elements:
They are tightly bound by ligaments that are intended to prevent them from dislocating.
They are also surrounded by skeletal muscles that control their movement, as directed by your nervous system.