The purpose of this paper is to accomplish the stable humanoid robot walking on the soft terrains. The goal of the humanoid robot development is to make the robotic system perform some tasks in human living environment. However, human dwelling environments are very different from those of laboratories, where varied experiments are performed by the robot. In many cases, the ground is soft or elastic unlike the floor of a laboratory. When a robot walks on the soft ground, the sale of robot contacts the uneven ground. This results in unstable walking or walking may be impossible according to the degree of softness. Therefore, the algorithm that facilitates stable walking on the soft ground surface is required. In this paper, we suggest an algorithm that controls the ankle to help the robot walk stably on the soft ground using the humanoid robot (ISHURO-Ⅱ) as a real model. A humanoid robot walking on the soft ground was simulated to verify that the proposed algorithm results in stable walking.