The substrate specificity of acyl-ACP thioesterase (TE) plays an essential role in controlling the fatty acid profile produced by type II fatty acid synthases. Here we identify two groups of residues that synergistically determine different substrate specificities of two acyl-ACP TEs from Cuphea