The gene repertoires of microbial species, their pangenomes, evolve very fast. Their study facilitates the discrimination between lineages and reveals which genes drive their recent adaptation. It has therefore become a key topic of study in microbial evolution and genomics. Yet, the increase in the number of genomes available to certain species, now reaching many thousands, complicates the establishment of the basic building blocks of comparative genomics. Here, we present PanACoTA, a tool that allows to download all genomes of a species, build a database with those passing quality and redundancy controls, define uniform annotation, and use them to build a pangenome, several variants of core or persistent genomes, their alignments, and a rapid but accurate phylogenetic tree. While many programs have become available in the last few years to build pangenomes, we have focused on a method that tackles all the key steps of the process, from download to phylogenetic inference. This was conceived in a modular way, i.e. while all steps are integrated, they can also be run separately and multiple times to allow rapid and extensive exploration of the space of parameters of interest. The software is built in Python 3 and includes features to facilitate its installation and its future development. We believe PanACoTa is an interesting addition to the current set of bioinformatics software for comparative genomics, since it will accelerate and standardize the more routine parts of the work, allowing microbial genomicists to more quickly tackle their specific questions.