A planned visit by Cyril Ramaphosa, South African President to Ghana has been postponed after weeks of diplomatic tensions triggered by anti-foreigner protests in South Africa.

The decision reflects how a domestic immigration debate has grown into a regional diplomatic crisis involving thousands of migrants, conflicting official accounts and growing concerns over African unity.

Read also: Ghana clears $700 million Eurobond payment ahead of schedule as debt recovery gathers pace

Here is what happened and why it matters.

Why was Ramaphosa supposed to visit Ghana?