 Tram construction continued until the outbreak of World War I.Operation of the tramways remained largely unchanged until 1918 and the emergence for the first time of Latvia as an independent nation, when a Belgian company took over.This period of private ownership was deemed a failure, and the city authorities regained control of the tram network in 1931.