Biological research is necessary; not only to further our understanding of the processes of life, but also to combat disease, hunger and environmental damage. Bioinformatics is the science of handling biological information. It entails integrating, structuring and analysing the ever-increasing amounts of available biological data. In practise it means using computers to analyse huge amounts of very complicated data taken from a field that is only partially understood, to see the hidden trends and connections, and to draw useful conclusions. My thesis work has mainly concerned the study of protein families, which are groups of evolutionarily related proteins. I have analysed known protein families and created predictive models for them, and developed algorithms for defining new protein families. My principal techniques have been sequence alignments and hidden Markov models (HMM). To aid my work, I have written a lot of software, including MSAView, a visualiser for multiple sequence alignments (MSA). In this thesis, the protein family of inorganic pyrophosphatases (H+-PPases) is studied, as well as the two protein superfamilies BRICHOS and MDR (medium-chain dehydrogenases/reductases). The H+-PPases are tightly membrane bound, proton pumping, dimeric enzymes with ~700-residue subunits and found in bacteria, plants and eukaryotic parasites, and which use pyrophosphate as an alternative to ATP. The BRICHOS superfamily is only present in higher eukaryotes, but encompasses at least 8 protein families with a wide range of functions and disease associations, such as respiratory distress syndrome, dementia and cancer. The sequences are typically ~200 residues with even shorter functional forms. Finally, MDR, is a large and complex protein superfamily; it currently has over 16000 members, it is present in all kingdoms of life, the pairwise sequence identity is typically around 25 %, the chain lengths vary as does the oligomericity, and the members are partaking in a multitude of biological processes. The member families include the classical liver alcohol dehydrogenase (ADH), quinone reductase, leukotriene B4 dehydrogenase, and many more forms. There are at least 25 human MDR genes excluding close homologues. There are HMMs available for detecting MDR superfamily membership, but none for the individual families. For the H+-PPase family, we characterised member sequences found using an HMM of a conserved 57-residue region thought to form part of the active site. This region was found to contain two highly conserved nonapeptides, mainly consisting of the four “very early” residues Gly, Ala, Val and Asp, compatible with an ancient origin of the family. The two patterns have charged amino acid residues at positions 1, 5 and 9, are apparent binding sites for the substrate and parts of the active site, and were shown to be so specific for these enzymes that they can be used for automated annotation of new sequences. For the BRICHOS superfamily, we were able to find three previously unknown member families; group A, which may be ancestral to the ITM2 families (integral membrane protein 2); group B, which is a close relative to the gastrokine families, and group C, which appears to be a truly novel, disjoint BRICHOS family. The C-terminal region of group C has nearly identical sequences in all species ranging from fish to man and is seemingly unique to this family, indicating critical functional or structural properties. For the MDR superfamily, we characterised and built stable HMMs for 17 member families using an empiric approach. From our experiences we were able to develop an algorithm for automated HMM refinement that uses relationships in data to produce stable and reliable classifiers, and we used it to produce HMMs for 86 distinct MDR families. We have made the program freely available and it can be readily applied to other protein families. We also developed a web site (http://mdr–enzymes.org) that makes our findings directly useful also for non-bioinformaticians. In our analyses of the 86 families, we found that MDR forms with 2 Zn2+ ions in general are dehydrogenases, while MDR forms with no Zn2+ in general are reductases. Furthermore, in Bacteria, MDRs without Zn2+ are more frequent than those with Zn2+, while the opposite is true for eukaryotic MDRs, indicating that Zn2+ has been recruited into the MDR superfamily after the initial life kingdom separations. Multiple sequence alignments (MSA) play a central part in most work on protein families, and are integral to many bioinformatic methods. With the ongoing explosive increase of available sequence data, the scales of bioinformatic projects are growing, and efficient and human-friendly data visualisation becomes increasingly challenging, but is still essential for making new interpretations and discovering unexpected properties of the data. Ideally, visualisation should be comprehensive and detailed, and never distract with irrelevant information. It needs to offer natural and responsive ways of exploring the data, as well as provide consistent views in order to facilitate comparisons between datasets. I therefore developed MSAView, which is a fast, modular, configurable and extensible package for analysing and visualising MSAs and sequence features. It has a graphical user interface and a powerful command line client, and can be imported as a package into any Python program. It has a plugin architecture and a user extendable preset library. It can integrate and display data from online sources and launch external viewers for showing additional details. It also includes two new conservation measures; alignment divergences, which indicate atypical residues or deletions, and sequence conformances, which highlight sequences that differ from their siblings at crucial positions. In conclusion, this thesis details my work in analysing two protein superfamilies and one protein family using bioinformatic methods; developing an algorithm for automated generation of stable and reliable HMMs, as well as a new conservation measure, and a software platform for working with aligned sequences.