Interferon (IFN)-inducible GTPase that plays important roles in innate immunity against a diverse range of bacterial, viral and protozoan pathogens (By similarity). Hydrolyzes GTP to GMP in two consecutive cleavage reactions and predominantly uses GTP and not GDP or GMP as the substrate (By similarity). Following infection, recruited to the pathogen-containing vacuoles or vacuole-escaped bacteria and acts as a positive regulator of inflammasome assembly by promoting the release of inflammasome ligands from bacteria (By similarity). Acts by promoting lysis of pathogen-containing vacuoles, releasing pathogens into the cytosol (By similarity). Following pathogen release in the cytosol, promotes recruitment of proteins that mediate bacterial cytolysis: this liberates ligands that are detected by inflammasomes, such as lipopolysaccharide (LPS) that activates the non-canonical CASP4/CASP11 inflammasome or double-stranded DNA (dsDNA) that activates the AIM2 inflammasome (By similarity). Also promotes IFN-gamma-mediated host defense against bacterial infections by regulating oxidative responses and bacteriolytic peptide generation (By similarity). May help to assemble NADPH oxidase on phagosomal membranes by acting as a bridging protein between NADPH oxidase cytosolic subunits NCF2-NCF4 and the membrane subunits CYBA-CYBB (By similarity). Participates along with GBP1 in trafficking monoubiquitinated protein cargo to autolysosomes for generating ubiquitin-derived antimicrobial peptides (By similarity). Facilitates influenza A virus replication by inhibiting the activation of NF-kappaB and JAK-STAT signaling pathways and the expression of type I, type III interferons and pro-inflammatory cytokines (PubMed:33408175). Confers protection to several pathogens, including the bacterial pathogens Listeria monocytogenes and Mycobacterium bovis BCG as well as the protozoan pathogen Toxoplasma gondii (By similarity). Required for disruption of the parasitophorous vacuole formed following T.gondii infection and subsequent killing of the parasite (By similarity). {ECO:0000250|UniProtKB:Q91Z40, ECO:0000269|PubMed:33408175}. This is the function of Ensembl gene identifier ENSG00000213512 (GBP7, guanylate binding protein 7).