In this paper, we apply The Bees Algorithm to find optimal PID controller gains to control angular positions of robot leg joints with the minimum position error. In order to present more realistic simulation, system modelled in MATLAB/Simulink environment which is close to experimental set up. Solid model of system, which has two degrees of freedom, drawn by using a CAD software. Required physical specifications of robot leg for MATLAB/Simulink modelling is obtained from this CAD model. Controller of the system is designed in MATLAB/Simulink interface. Simulation results derived to show effectiveness of The Bees Algorithm to find optimal PID controller gains.