Proteins can be engineered to form nanoparticles that encapsulate drugs, allowing for targeted delivery to specific cells or tissues. This reduces side effects and increases the efficacy of the drug. For example, protein nanoparticles can be designed to release their payload in response to specific stimuli such as pH or temperature changes.