The present invention relates to heterocyclic compounds of formula I which have microbiocidal activity, in particular fungicidal activity as well as methods of using the compounds of formula I to control microbes:wherein A is x-C(R10R11)-C(=O)-, x-C(R12R13)-C(=S)-, x-O-C (=O)-, x-O-C(=S)-, x-N(R14)-C(=O)-, x-N(R15)-C(=S)- ,x-C (R16R17)-SO2- or x-N=C(R30)-, in each case x indicates the bond that is connected to R1; T is CR18or N; Y1, Y2, Y3, and Y4are independently CR19or N; Q is O or S; n is 1 or 2; p is 1 or 2, providing that when n is 2, p is 1. R1is phenyl, pyridyl, imidazolyl, or pyrazolyl; wherein the phenyl, pyridyl, imidazolyl and pyrazolyl are each optionally substituted by 1 to 3 substituents independently selected from C1-C4alkyl, C1-C4haloalkyl, halogen, cyano, hydroxy and amino; R2, R3, R4, R5, R6, R7, R10, R11, R12, R13, R16, R17, R18,R19and R30each independently are hydrogen, halogen, cyano, C1-C4alkyl, or C1-C4haloalkyl; R8, R14and R15each independently are hydrogen or C1-C4alkyl; and R9is phenyl, benzyl or group (a):wherein the phenyl, benzyl and group (a) are each optionally substituted with 1 to 3 substituents independently selected from C1-C4alkyl, C1-C4haloalkyl, halogen, cyano, hydroxy and amino; or a salt or a N-oxide thereof.本發明係關於具有殺微生物活性,尤其是具有殺真菌活性之式I雜環化合物,以及使用式I化合物控制微生物之方法:其中A為x-C(R10R11)-C(=O)-、x-C(R12R13)-C(=S)-、x-O-C(=O)-、x-O-C(=S)-、x-N(R14)-C(=O)-、x-N(R15)-C(=S)-、x-C(R16R17)-SO2-或x-N=C(R30)-,在各情況下x表示連接至R1之鍵;T為CR18或N;Y1、Y2、Y3及Y4獨立地為CR19或N;Q為O或S;n為1或2;p為1或2,前提是當n為2時,p為1;R1為苯基、吡啶基、咪唑基或吡唑基;其中苯基、吡啶基、咪唑基及吡唑基各自視情況經1至3個獨立地選自以下之取代基取代:C1-C4烷基、C1-C4鹵烷基、鹵素、氰基、羥基及胺基;R2、R3、R4、R5、R6、R7、R10、R11、R12、R13、R16、R17、R18、R19及R30各自獨立地為氫、鹵素、氰基、C1-C4烷基或C1-C4鹵烷基;R8、R14及R15各自獨立地為氫或C1-C4烷基;且R9為苯基、苯甲基或基團(a):其中該苯基、苯甲基及基團(a)各自視情況經1至3個獨立地選自以下之取代基取代:C1-C4烷基、C1-C4鹵烷基、鹵素、