Poly(ester amide)s (PEAs) have various applications but their synthesis is currently limited to chemical methods. Now, the biosynthesis of various PEAs in engineered Escherichia coli is presented. The PEAs incorporate different amino acid monomers in varying fractions, which influences their physical, thermal and mechanical properties.