The structure of several eubacterial and archaebacterial surface (glyco)proteins as determined by three-dimensional electron microscopy is described. Particular emphasis is placed on surface proteins which interact with membranes. Some structure-function relationships deduced from the structural information, such as shape maintenance and molecular recognition phenomena, are discussed.