We describe the NMR structural characterisation of a bimolecular anti-parallel DNA quadruplex d(G(3)ACGTAGTG(3))(2) containing an autonomously stable mini-hairpin motif inserted within the diagonal loop. A folding topology is identified that is different from that observed for the analogous d(G(3)T(4)G(3))(2) dimer with the two structures differing in the relative orientation of the diagonal loops. This appears to reflect specific base stacking interactions at the quadruplex-duplex interface that are not present in the structure with the T(4)-loop sequence. A truncated version of the bimolecular quadruplex d(G(2)ACGTAGTG(2))(2), with only two core G-tetrads, is less stable and forms a heterogeneous mixture of three 2-fold symmetric quadruplexes with different loop arrangements. We demonstrate that the nature of the loop sequence, its ability to form autonomously stable structure, the relative stabilities of the hairpin loop and core quadruplex, and the ability to form favourable stacking interactions between these two motifs are important factors in controlling DNA G-quadruplex topology.