A method and a system for docking a robotic mower with a charging station, the system including a boundary wire and a charging station loop wherein the boundary wire makes a loop in the charging station that is narrower than and crosses the charging station loop. A return signal is received from a control unit commanding the robotic mower to return to the charging station. In response thereto, the robotic mower is controlled to follow the boundary wire until the charging station loop is detected. The robotic mower then follows the charging station loop until a crossing between the charging station loop and the boundary wire loop is detected. Thereafter, the robotic mower is controlled to follow the charging station loop a first distance, and then continuing to drive the robotic mower in a direction straight forward for a second distance. When the robotic mower has moved the second distance it is turned a predefined angle towards the charging station and controlled to follow the boundary wire loop until a charging position is reached.