Surface layers (S-layers) represent an almost universal feature of archaeal cell envelopes and are probably the most abundant bacterial cell proteins. S-layers are monomolecular crystalline structures of single protein or glycoprotein monomers that completely cover the cell surface during all stages of the cell growth cycle, thereby performing their intrinsic function under a constant intra-and intermolecular mechanical stress. In Gram-positive bacteria, the individual S-layer proteins are anchored by a specific binding mechanism to polysaccharides (secondary cell wall polymers) that are linked to the underlying peptidoglycan layer. In this work, atomic force microscopybased single-molecule force spectroscopy and a polyprotein approach are used to study the individual mechanical unfolding pathways of an S-layer protein. We uncover complex unfolding pathways involving the consecutive unfolding of structural intermediates, where a mechanical stability of 87 pN is revealed. Different initial extensibilities allow the hypothesis that S-layer proteins adapt highly stable, mechanically resilient conformations that are not extensible under the presence of a pulling force. Interestingly, a change of the unfolding pathway is observed when individual S-layer proteins interact with secondary cell wall polymers, which is a direct signature of a conformational change induced by the ligand. Moreover, the mechanical stability increases up to 110 pN. This work demonstrates that single-molecule force spectroscopy offers a powerful tool to detect subtle changes in the structure of an individual protein upon binding of a ligand and constitutes the first conformational study of surface layer proteins at the single-molecule level.