Original: The city surrendered to British forces under Frederick Roberts on 5 June 1900 and the conflict was ended in Pretoria with the signing of the Peace of Vereeniging on 31 May 1902 .
Simplified: The war ended in Pretoria with the signing of the Peace of Vereeniging on May 31 1902 .