Understanding germline specification in plants could be advantageous for agricultural applications. In recent decades, substantial efforts have been made to understand germline specification in several plant species, including Arabidopsis, rice, and maize. However, our knowledge of germline specification in many agronomically important plant species remains obscure. Here, we characterized the female germline specification and subsequent female gametophyte development in pineapple using callose staining, cytological, and whole-mount immunolocalization analyses. We also determined the male germline specification and gametophyte developmental timeline and observed male meiotic behavior using chromosome spreading assays. Furthermore, we identified 229 genes that are preferentially expressed at the megaspore mother cell (MMC) stage during ovule development and 478 genes that are preferentially expressed at the pollen mother cell (PMC) stage of anther development using comparative transcriptomic analysis. The biological functions, associated regulatory pathways and expression patterns of these genes were also analyzed. Our study provides a convenient cytological reference for exploring pineapple germline development and a molecular basis for the future functional analysis of germline specification in related plant species.