JOHANNESBURG — South Africa's president says Germany is an important economic partner which he hopes will expand its investment here.

President Cyril Ramaphosa was speaking Tuesday in Cape Town to mark the end of the three-day state visit of German President Frank-Walter Steinmeier.

Ramaphosa said Germany is South Africa's third-largest global trading partner and one of the country's largest foreign investors. He said more than 600 German companies operate in South Africa, sustaining approximately 100,000 jobs.

Both Germany and South Africa will be non-permanent members of the United Nations Security Council for the year 2019 to 2020 and Ramaphosa said the leaders agreed that their two countries would work together to promote global peace and security as well as to strengthen the multilateralism system.