The title heterocyclic compound, C(20)H(17)NO(3)S, was synthesized by condensation of ethyl cyano-acetate with (Z)-2-benzyl-idenebenzo[b]thio-phen-3(2H)-one in the presence of a basic catalyst in ethanol. The phenyl and ester groups make dihedral angles of 77.67 (6) and 8.52 (6)°, respectively, with the benzothienopyran ring system [maximum r.m.s. deviation = 0.1177 (13) Å]. In the crystal, centrosymmetric dimers are formed through pairs of N-H⋯O hydrogen bonds between the amine and ester groups. Inter-molecular C-H⋯N hydrogen bonds and C-H⋯π inter-actions involving the thio-phene ring are also observed.