The engineering of biological organisms or their components for the production of useful products or services.