The part of a building that performs a function most similar to that of the skeletal system is the frame.
The frame of a building provides structural support and stability, much like the skeletal system supports and shapes the human body. It holds the entire structure together and supports loads, similar to how bones support and protect the body's organs and tissues.