Basically, animals such as molluscs and vertebrates take advantage of the tendency of certain minerals ??? calcium carbonates and calcium phosphates for example ??? to self assemble and have evolved mechanisms for guiding that self-assembly in certain locations; leading to the formation of such things as bone and shells.