The size-dependent and shape-dependent characteristics that distinguish nanoscale materials from bulk solids arise from constraining the dimensionality of an inorganic structure1,2,3. As a consequence, many studies have focused on rationally shaping these materials to influence and enhance their optical, electronic, magnetic and catalytic properties4,5,6. Although a select number of stable clusters can typically be synthesized within the nanoscale regime for a specific composition, isolating clusters of a predetermined size and shape remains a challenge, especially for those derived from two-dimensional materials. Here we realize a multidentate coordination environment in a metal–organic framework to stabilize discrete inorganic clusters within a porous crystalline support. We show confined growth of atomically defined nickel(ii) bromide, nickel(ii) chloride, cobalt(ii) chloride and iron(ii) chloride sheets through the peripheral coordination of six chelating bipyridine linkers. Notably, confinement within the framework defines the structure and composition of these sheets and facilitates their precise characterization by crystallography. Each metal(ii) halide sheet represents a fragment excised from a single layer of the bulk solid structure, and structures obtained at different precursor loadings enable observation of successive stages of sheet assembly. Finally, the isolated sheets exhibit magnetic behaviours distinct from those of the bulk metal halides, including the isolation of ferromagnetically coupled large-spin ground states through the elimination of long-range, interlayer magnetic ordering. Overall, these results demonstrate that the pore environment of a metal–organic framework can be designed to afford precise control over the size, structure and spatial arrangement of inorganic clusters.