This document details the development of a method to optimize the parameters of PI controllers using an Ant Colony Optimization (ACO) algorithm, which outperforms traditional tuning methods. The study involves using a didactic level control system to demonstrate the ACO's effectiveness in minimizing overshoot and improving accommodation time. Results show that the ACO-tuned PI controller achieves better performance compared to classical methods like IMC and Haalman.