In the horseshoe crab, the recognition of β-1,3-d-glucans by factor G triggers hemolymph coagulation. Factor G contains a domain of two tandem xylanase Z-like modules (Z1-Z2), each of which recognizes β-1,3-d-glucans. To gain an insight into the recognition of β-1,3-d-glucans from a structural view point, recombinants of Z1-Z2, the C-terminal module Z2, Z2 with a Cys to Ala substitution (Z2A), and its tandem repeat Z2A-Z2A were characterized. Z2 and Z1-Z2, but not Z2A and Z2A-Z2A, formed insoluble aggregates at higher concentrations more than ∼30 and 3 μM, respectively. Z1-Z2 and Z2A-Z2A bound more strongly to an insoluble β-1,3-d-glucan (curdlan) than Z2A. The affinity of Z2A for a soluble β-1,3-d-glucan (laminarin) was equivalent to those of Z1-Z2, Z2A-Z2A, and native factor G, suggesting that the binding of a single xylanase Z-like module prevents the subsequent binding of another module to laminarin. Interestingly, Z2A as well as intact factor G exhibited fungal agglutinating activity, and fungi were specifically detected with fluorescently tagged Z2A by microscopy. The chemical shift perturbation of Z2A induced by the interaction with laminaripentaose was analyzed by nuclear magnetic resonance spectroscopy. The ligand-binding site of Z2A was located in a cleft on a β-sheet in a predicted β-sandwich structure, which was superimposed onto cleft B in a cellulose-binding module of endoglucanase 5A from the soil bacterium Cellvibrio mixtus. We conclude that the pattern recognition for β-1,3-d-glucans by factor G is accomplished via a carbohydrate-binding cleft that is evolutionally conserved between horseshoe crab and bacteria.