A method performed by a system for docking a robotic mower with a charging station , the system comprising the robotic mower having a control unit and at least one sensor (12; 14; 16; 17; 19), a boundary wire , a charging station loop and the charging station , and wherein the boundary wire makes a boundary wire loop in the charging station that is narrower than and crosses the charging station loop , the method comprising: a) receiving (S100) a return signal from the control unit that the robotic mower shall return to the charging station , b) controlling (S102) the robotic mower to follow the boundary wire at a distance, c) detecting (S104) the charging station loop by means of the at least one sensor (12; 14; 16; 17; 19), d) controlling (S106) the robotic mower to follow the charging station loop , in a direction away from the boundary wire , by using at least one sensor (12; 14; 16; 17; 19), e) detecting (S108), by means of the at least one sensor (12; 14; 16; 17; 19), a crossing between the charging station loop and the boundary wire loop , f) controlling (S110) the robotic mower to follow the charging station loop a first distance after detection of the crossing, said first distance is long enough to straighten up the robotic mower such that the robotic mower runs parallel with the charging station loop , g) continuing (S112) to drive the robotic mower in a direction straight forward for a second distance, after being driven in the direction straight froward for the second distance, the robotic mower is in a same position every time this step (S112) of the method is performed, so that the docking between the robotic mower and charging contacts in the charging station runs smoothly, h) turning (S114), by means of the control unit , the robotic mower towards the charging station , and i) controlling (S116) the robotic mower to follow the boundary wire loop with at least one sensor (12; 14; 16; 17; 19) until a charging position is reached. a) receiving (S100) a return signal from the control unit that the robotic mower shall return to the charging station , b) controlling (S102) the robotic mower to follow the boundary wire at a distance, c) detecting (S104) the charging station loop by means of the at least one sensor (12; 14; 16; 17; 19), d) controlling (S106) the robotic mower to follow the charging station loop , in a direction away from the boundary wire , by using at least one sensor (12; 14; 16; 17; 19), e) detecting (S108), by means of the at least one sensor (12; 14; 16; 17; 19), a crossing between the charging station loop and the boundary wire loop , f) controlling (S110) the robotic mower to follow the charging station loop a first distance after detection of the crossing, said first distance is long enough to straighten up the robotic mower such that the robotic mower runs parallel with the charging station loop , g) continuing (S112) to drive the robotic mower in a direction straight forward for a second distance, after being driven in the direction straight froward for the second distance, the robotic mower is in a same position every time this step (S112) of the method is performed, so that the docking between the robotic mower and charging contacts in the charging station runs smoothly, h) turning (S114), by means of the control unit , the robotic mower towards the charging station , and i) controlling (S116) the robotic mower to follow the boundary wire loop with at least one sensor (12; 14; 16; 17; 19) until a charging position is reached. <EOS>