The structure and composition of the eggshell protects the egg against damage, microbial contamination, and desiccation (drying out). Small molecules can pass through it, so the shell allows gas exchange for the growing embryo. It also provides calcium for the embryo's skeleton. 