Unsaturated polyamides and polyesters prepared from 1,4-bis(2-carboxyvinyl)benzene and 4-hydroxycinnamic acid