Several 2-(1,2-benzisoxazol-3-yl)-3-[[omega-(dialkylamino)alkoxy]phenyl]acrylonitrile derivatives were synthesized and screened for potential spasmolytic activity. The effect of structural variation of these molecules on biological activities was systematically examined. Among these compounds, (Z)-2-(1,2-benzisoxazol-3-yl)-3-[2-(2-piperidinoethoxy)-phenyl]acrylonitrile (1d), (Z)-2-(1,2-benzisoxazol-3-yl)-3-[2-(2-morpholinoethoxy)phenyl]acrylonitrile (1f), and their analogues (3c,d) having a methoxy substituent at C5 of the benzoisoxazole ring showed potent antispasmodic activities in the in vitro and in vivo studies.