A family of membrane-associated proteins responsible for the attachment of the cytoskeleton. Erythrocyte-related isoforms of ankyrin attach the spectrin cytoskeleton to a transmembrane protein (anion exchange protein 1, erythrocyte) in the erythrocyte plasma membrane. brain-related isoforms of ankyrin also exist.