When a drop of liquid dries on a solid surface, its suspended particulate matter is deposited in ring-like fashion. This phenomenon, known as the coffee-ring effect1,2,3, is familiar to anyone who has observed a drop of coffee dry. During the drying process, drop edges become pinned to the substrate, and capillary flow outward from the centre of the drop brings suspended particles to the edge as evaporation proceeds. After evaporation, suspended particles are left highly concentrated along the original drop edge. The coffee-ring effect is manifested in systems with diverse constituents, ranging from large colloids1,4,5 to nanoparticles6 and individual molecules7. In fact—despite the many practical applications for uniform coatings in printing8, biology9,10 and complex assembly11—the ubiquitous nature of the effect has made it difficult to avoid6,12,13,14,15,16. Here we show experimentally that the shape of the suspended particles is important and can be used to eliminate the coffee-ring effect: ellipsoidal particles are deposited uniformly during evaporation. The anisotropic shape of the particles significantly deforms interfaces, producing strong interparticle capillary interactions17,18,19,20,21,22,23. Thus, after the ellipsoids are carried to the air–water interface by the same outward flow that causes the coffee-ring effect for spheres, strong long-ranged interparticle attractions between ellipsoids lead to the formation of loosely packed or arrested structures on the air–water interface17,18,21,24. These structures prevent the suspended particles from reaching the drop edge and ensure uniform deposition. Interestingly, under appropriate conditions, suspensions of spheres mixed with a small number of ellipsoids also produce uniform deposition. Thus, particle shape provides a convenient parameter to control the deposition of particles, without modification of particle or solvent chemistry.