Filamentous bacteriophages package their circular, single stranded DNA genome with the major coat protein pVIII and the minor coat proteins pIII, pVII, pVI, and pIX. Here, we report the cryo-EM structure of a ~500 Å long bacteriophage M13 mini variant. The distal ends of the mini phage are sealed by two cap-like complexes composed of the minor coat proteins. The top cap complex consists of pVII and pIX, both exhibiting a single helix structure. Arg33 of pVII and Glu29 of pIX, located on the inner surface of the cap, play a key role in recognizing the genome packaging signal. The bottom cap complex is formed by the hook-like structures of pIII and pVI, arranged in helix barrels. Most of the inner ssDNA genome adopts a double helix structure with a similar pitch to that of the A-form double-stranded DNA. These findings provide insights into the assembly of filamentous bacteriophages.