Contrary to the shortcomings of conventional PID tuning method, Colonial Competitive algorithm was introduced, which belongs to Community-inspired algorithms, quadratic performance index of controlled object is introduced as a criteria of performance of tuned PID controller, a new PID tuning method was proposed. This method can quality converge to the optimal solution in the search space. Simulation results showed that this method could save computer memory, less time consuming and PID initial parameters did not need to set, the optimal solution obtained by CCA was better than other optimal algorithms such as genetic algorithm.