The development of mangrove ecosystem has a significant impact on fishery resources, such as gastropod. This research aimed at studying the community structure of mangrove forest in Mojo village, to identifying and analyzing the composition and diversity of gastropod, and investigating the effect of mangrove community on the abundance and gastropod. The research was conducted in Mojo Village, Ulujami District, Pemalang Region from November to December 2017. Identification of species and density was conducted on mangrove species by means of line and plot transects, while the gastropod was sampled from the field then identified in the laboratory. Three sampling stations were occupied in the data collection. The data analysis was conducted for diversity indices, including heterogeneity and evenness both for mangrove and gastropod. Statistical data analysis was conducted by regression to analyze the effect of mangrove density on the abundance of gastropod. The result showed that only three mangrove species were found in Mojo village, including Rhizophora mucronata, Avicennia marina and A. officinalis. Eight gastropod species were identified from mangrove forest of Mojo village. The most dominant gastropod species was Telescopium telescopium, followed by Cerithidea cingulata. The analysis of heterogeneity index showed a low value for mangrove community and medium value for the gastropod community, ranging from 0.353 to 0.720 and 1.462 to 1.812, respectively. Statistical data analysis showed that the density of R. mucronata and A. marina had a significant effect on the abundance of gastropod specieses, including Cerithidea quadrata and Casidula nucleus, both of which had logarithmic relationship trends.