MUNICH, SEPT. 11 -- East German leader Erich Honecker ended his unprecedented five-day visit to West Germany today by visiting the Nazi concentration camp at Dachau.

Honecker, the first leader of Communist East Germany to visit West Germany, also said in a statement before returning to East Berlin that there was much room to forge closer ties between the two countries, divided in 1949.

"The results and agreements mark a success for policies of common sense and realism, a gain for people and for peace. {East Germany} will not lack the necessary good will and level-headedness for future progress," he said.

Earlier, Honecker laid a wreath in memory of the victims of Nazi persecution at the Dachau death camp near here.

Honecker, 75, spent 10 years in a Nazi prison after being arrested for underground communist activities. In the past, East Berlin often accused Bonn of allowing former Nazis to go unpunished.

The atmosphere of Honecker's visit this week reflected a general relaxation in relations.

He touched on one of the most sensitive issues in East-West German relations yesterday when he suggested that border fortifications between the two Germanys could be removed in the future.

"I believe that if we act together . . . the day will come when borders no longer divide us but unite us, as the border between the German Democratic Republic {East Germany} and Poland," he said.

Chancellor Helmut Kohl pressed the issue of travel to the West and human contacts during two days of official talks with Honecker early this week.

Bavarian Premier Franz Josef Strauss underlined West German concern during a blunt speech today.

Strauss, speaking at a banquet in Honecker's honor, said West Germany remained committed to ending the 38-year-old division of the country. Honecker has repeatedly dismissed German reunification as a pipe dream.

Honecker flew to East Berlin's Schoenefeld airport from Munich.