the German troops remain in Latvia and Estonia to prevent the area from being re-occupied by the Red Army. As many of the demoralised German soldiers were being withdrawn from Latvia, a Freikorps unit called the Iron Division (Eiserne Division) was formed and deployed in Riga and used to delay the Red advance. New volunteers arriving from Germany and remnants of the German 8th Army were subsequently added to the Iron Division, which was assigned under the command of Goltz. Also, Baltic Germans and some Latvians formed the Baltische Landeswehr, led by Major Alfred Fletcher. In late February 1919, only the seaport of Libau (Liepāja) remained in the hands of the German and Latvian forces. In March 1919, General von der Goltz was able to win a series of victories over the Red Army, first occupying Windau (Ventspils), the major port of Courland, and then advancing south and east to retake Riga. After the Bolsheviks had been driven out from most of Latvia, the Allies ordered the German government to withdraw its troops from the Baltic region. However, the Germans succeeded in negotiating a postponement, arguing that this would have given the Bolsheviks a free hand. General von der Goltz then attempted to seize control of Latvia with the assistance of the local German population. The Latvian nationalist government was deposed while the Freikorps, Latvian and White Russian units moved on to capture Riga on May 23, 1919. The Latvian nationalists sought assistance from the Estonian army which had been occupying northern Latvia since earlier that year. In June 1919, General von der Goltz ordered his troops not to advance east against the Red Army, as the Allies had been expecting, but north, against the Estonians. On June 19, the Iron Division and Landeswehr units launched an attack to capture areas around Wenden (Cēsis), but in the battles over the following few days, they were defeated by the 3rd Estonian Division (led by Ernst Põdder). On the morning of June 23, the Germans began a general retreat toward Riga. The Allies again insisted that the Germans withdraw their remaining troops from Latvia and intervened to impose a ceasefire between the Estonians and the Freikorps when the Latvians were about to march into Riga. The British insisted that General von der Goltz leave Latvia, and he turned his troops over to the West Russian Volunteer Army. Count von der Goltz later