The properties of polycrystalline materials are often dominated by the size of their grains and by the atomic structure of their grain boundaries. These effects should be especially pronounced in two-dimensional materials, where even a line defect can divide and disrupt a crystal. These issues take on practical significance in graphene, which is a hexagonal, two-dimensional crystal of carbon atoms. Single-atom-thick graphene sheets can now be produced by chemical vapour deposition on scales of up to metres, making their polycrystallinity almost unavoidable. Theoretically, graphene grain boundaries are predicted to have distinct electronic, magnetic, chemical and mechanical properties that strongly depend on their atomic arrangement. Yet because of the five-order-of-magnitude size difference between grains and the atoms at grain boundaries, few experiments have fully explored the graphene grain structure. Here we use a combination of old and new transmission electron microscopy techniques to bridge these length scales. Using atomic-resolution imaging, we determine the location and identity of every atom at a grain boundary and find that different grains stitch together predominantly through pentagon-heptagon pairs. Rather than individually imaging the several billion atoms in each grain, we use diffraction-filtered imaging to rapidly map the location, orientation and shape of several hundred grains and boundaries, where only a handful have been previously reported. The resulting images reveal an unexpectedly small and intricate patchwork of grains connected by tilt boundaries. By correlating grain imaging with scanning probe and transport measurements, we show that these grain boundaries severely weaken the mechanical strength of graphene membranes but do not as drastically alter their electrical properties. These techniques open a new window for studies on the structure, properties and control of grains and grain boundaries in graphene and other two-dimensional materials.