Ants play a crucial role as ecosystem engineers and natural enemies of insect pests in different forests and agroecosystems. Bangladesh’s varied agroecosystem harbors a diverse ant community, it can be utilized to track recent changes to the agricultural environment. However, it’s utilization is deemed due to insufficient taxonomic checklist of ant fauna and their diversity pattern in various ecosystems in Bangladesh. This research aimed to measure the taxonomic and functional diversity of ants in an agroecosystem. Sampling was done by time-unit sampling (TUS) during March- April 2021 in different cropland habitats in Bangabandhu Sheikh Mujibur Rahman Agricultural University (BSMRAU) campus. A total of 172 individuals of 20 genera under 5 subfamilies were identified, of which Myrmicinae was the richest subfamily with 9 genera, while Camponotus is the most dominant genus in the ecosystem. Four habitats from BSMRAU campus significantly contributed on ant species richness and diversity matrix as revealed through Principal component analysis (PCA). The functional diversity of identified ant genera was explained using the results retrieved from Shannon Diversity Index, Species Evenness index and Effective number of species (ENS). The Shannon-Wiener diversity index of Field pathway (2.5202) is highest, followed by Entomology field (2.38086), agroforestry field (1.37315) and lowest in rice field (0.16794). Field pathway had the highest value due to comprising several types of vegetation alongside and non-ploughed soil. Rice field has only rice crops that were grown in a wetland; hence, water causes the lowest value. The evenness index (>0.75) implies the probability of stable communities in all the tested habitats except in rice field (0.242), which indicates a depressed community structure and is strengthened by the ENS value as 12.4, 10.8, 3.9, and 1.18 in the field pathway, in entomology field, agroforestry field, and rice field, respectively. The findings generated a comprehensive ant checklist and diversity indices with indicator species to measure the land type transformation and restoration in the agroecosystem of Bangladesh for future research.