Referring to a heteroarilpiperidina and piperazine derivative Compound of formula (i), where: Z is optionally substituted with phenyl or heteroaryl (- 1) of 5 or 6 members optionally replaced with Z (Z 2) or (3) Z is H (- 1), cyano, Oh, halogen, among others Z (- 2) and RG1 are h, halogen, Oh, Thiol, among others Z (- 3) RG2, and Z2 are h, C (= o) h, phenylL1 is nrl12 among others or (C rl11) 2 rl11 is H, halogen, Oh, among others rl12 is H, - C (= o) h, alkyl of C1 - C6, among others and it is s u o X is c or N R2 is H, alkyl of C1 - C6 alquenilo, C2 - C6, among others, R10 is OXO, c1-c6 alkyl, alquenilo C2 - C6Among others, p is an integer from 0 to 2 g is an optionally substituted heteroaryl 5 members with RG1 and RG2 Q is a Five Member heterocycle optionally replaced with R5, R6 is H, Oxo, cyano, Oh, among others r1 is phenyl, Benzyl, among others.Preferred compounds are: 2 - [3,5-bis (difluorometil) - 1H pyrazol-1-yl] - 1 - (4 - fluoro - 4 - (4 - (5 - [methoxy (phenyl) methyl] - oxazole 4,5-dihydro - 1.2 - 1.3 - il - 3} - 2 - thiazole - il) piperidin-1-yl] ethanone, N - [2 - (bis difluorometil) phenyl] - 4 - (4 - (5 - [(phenyl) methyl] - difluoro - oxazole 4,5-dihydro - 1.2 - 1.3 - il - 3} - thiazol-2-yl) piperidin 1 - carboxamide, among others.It also relates to a Pharmaceutical Composition and a preparation method. These compounds are useful in the control of Harmful phytopathogenic fungi on Seeds and \/ or plantsREFERIDA A UN COMPUESTO DERIVADO DE HETEROARILPIPERIDINA Y PIPERAZINA DE FORMULA (I), DONDE: A ES FENILO OPCIONALMENTE SUSTITUIDO CON Z(A-1) O HETEROARILO DE 5 O 6 MIEMBROS OPCIONALMENTE SUSTITUIDO CON Z(A-2) O Z(A-3) Z(A-1) ES H, CIANO, HALOGENO, OH, ENTRE OTROS Z(A-2) Y RG1 SON H, HALOGENO, OH, TIOL, ENTRE OTROS Z(A-3), RG2 Y Z2 SON H, C(=O)H, FENILO, ENTRE OTROS L1 ES NRL12 O C(RL11)2 RL11 ES H, HALOGENO, OH, ENTRE OTROS RL12 ES H, -C(=O)H, ALQUILO C1-C6, ENTRE OTROS Y ES S U O X ES C O N R2 ES H, ALQUILO C1-C6, ALQUENILO C2-C6, ENTRE OTROS R10 ES