The synthesis of organic compounds within a living organism, especially the synthesis of large compounds from small ones.