In industrial practice, controller designs are performed based on an approximate model of the actual process. It is essential to design a control system which will exhibit a robust performance because the physical systems can vary with operating conditions and time. Gain and phase margins are well known parameters for evaluating the robustness of a control system. This,paper presents a tuning algorithm to design and tune PI controllers for stable processes with a small dead time while meeting specified gain and phase margins. Simulation examples are given to demonstrate that the proposed design method can result, in a closed-loop system, in better performances than existing design methods which are also based on user-specified gain and phase margins. (C) 2004 ISA-The Instrumentation, Systems, and Automation Society.