Bacteriorhodopsin is a small retinal protein found in the membrane of the halophilic bacterium Halobacterium salinarum, whose function is to pump protons across the cell membrane against an electrostatic potential, thus converting light into a proton-motive potential needed for the synthesis of ATP. Because of its relative simplicity, exceptional stability and the fundamental importance of vectorial proton pumping, bacteriorhodopsin has become one of the most important model systems in the field of bioenergetics. Recently, a novel methodology to obtain well-diffracting crystals of membrane proteins, utilizing membrane-like bicontinuous lipidic cubic phases, has been introduced, providing X-ray structures of bacteriorhodopsin and its photocycle intermediates at ever higher resolution. We describe this methodology, the new insights provided by the higher resolution ground state structures, and review the mechanistic implications of the structural intermediates reported to date. A detailed understanding of the mechanism of vectorial proton transport across the membrane is thus emerging, helping to elucidate a number of fundamental issues in bioenergetics.