Let X be a completely regular space. For a non-vanishing selfadjoint Banach subalgebra H of C B (X) which has local units we construct the spectrum sp(H) of H as an open subspace of the Stone-Čech compactification of X which contains X as a dense subspace. The construction of sp(H) is simple. This enables us to study certain properties of sp(H), among them are various compactness and connectedness properties. In particular, we find necessary and sufficient conditions in terms of either H or X under which sp(H) is connected, locally connected and pseudocompact, strongly zero-dimensional, basically disconnected, extremally disconnected, or an F -space.2010 Mathematics Subject Classification. Primary 46J10; Secondary 54D35, 54C35, 46J25.