The thesis deals with the parking problem in case of a differential-drive mobile robot. To perform a parking operation, the robot uses sensors to detect objects or obstacles in its environment, finds a suitable parking spot, and executes a parking maneuvre. The goal is to develop a program that will perform the parking operation autonomously. The mobile robot should be able to park in different ways: parallel, reverse, on-site parking, and parking between two rectangular walls. An existing mobile robot with built-in embedded computer is used. To accomplish the task, the mobile robot uses infrared sensors and rotary encoders. The program is written in Python programming language. The results show that the mobile robot can successfully perform several types of parking using the developed program. On- site parking and parking between two rectangular walls is reliably performed in all cases. However, in parallel and reverse parking, parking errors can occur, e.g. incomplete parallelism of the mobile robot end pose with respect to the wall. In general, with the developed program, the mobile robot parks successfully in 77,5 % of the cases.