The chapter presents a swarm-intelligence based optimization method known as bacterial foraging optimization method (BFO). The method is inspired from the foraging behaviour of bacteria. The algorithm of standard BFO is discussed with pseudocodes followed by Matlab source-code. In order to demonstrate the applicability of this method, one step-by-step example is provided. In this example, a benchmark Griewank function is solved by using BFO.