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 indicatesthe bond that is connected toR1; T is CR18 or N; Y1, Y2, Y3, and Y4 are independently CR19 or 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. R1 is 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, R14 and R15 each independently are hydrogen or C1-C4alkyl; and R9 is 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-C4 alkyl, C1-C4 haloalkyl, halogen, cyano, hydroxy and amino; or a salt or a N-oxide thereof.本發明涉及具有式I的雜環化合物,該雜環化合物具有殺微生物活性,特別是殺真菌活性,連同使用具有式I的化合物來控制微生物的方法:或其鹽或N-氧化物,其中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係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)中每一個任選地被獨立選自C1-C4烷基、C1-C4鹵烷基、鹵素、氰基、羥基和胺基的1至3個取代基取代。