Many species of bacteria can manufacture materials on a finer scale than those that are synthetically made. These products are often produced within intracellular compartments that bear many hallmarks of eukaryotic organelles. One unique and elegant group of organisms is at the forefront of studies into the mechanisms of organelle formation and biomineralization. Magnetotactic bacteria (MTB) produce organelles called magnetosomes that contain nanocrystals of magnetic material, and understanding the molecular mechanisms behind magnetosome formation and biomineralization is a rich area of study. In this Review, we focus on the genetics behind the formation of magnetosomes and biomineralization. We cover the history of genetic discoveries in MTB and key insights that have been found in recent years and provide a perspective on the future of genetic studies in MTB.