3-Phenylisoxazoline-5-carboxamides and 3-phenylisoxazoline-5-thioamides of the formula (I) and their use as herbicides and fungicides are described. In this formula (I), X, X2 to X6, R1 to R4 are radicals such as hydrogen, halogen and organic radicals such as substituted alkyl. A is a bond or a divalent unit. Y is a chalcogen.