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 effect, 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 colloids to nanoparticles and individual molecules. In fact--despite the many practical applications for uniform coatings in printing, biology and complex assembly-the ubiquitous nature of the effect has made it difficult to avoid. 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 interactions. 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 interface. 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.