Adenylyl cyclase (AC), which produces the signalling molecule cAMP, has numerous important cellular functions in diverse organisms from prokaryotes to eukaryotes. Here we report the identification and characterization of an AC gene from the liverwort Marchantia polymorpha. The encoded protein has both a C-terminal AC catalytic domain similar to those of class III ACs and an N-terminal cyclic nucleotide phosphodiesterase (PDE) domain that degrades cyclic nucleotides, thus we designated the gene MpCAPE (COMBINED AC with PDE). Biochemical analyses of recombinant proteins showed that MpCAPE has both AC and PDE activities. In MpCAPE-promoter-GUS lines, GUS activity was specifically detected in the male sexual organ, the antheridium, suggesting MpCAPE and thus cAMP signalling may be involved in the male reproductive process. CAPE orthologues are distributed only in basal land plants and charophytes that use motile sperm as the male gamete. CAPE is a subclass of class III AC and may be important in male organ and cell development in basal plants.