In the years of independent Republic of Latvia (1918–1940) Ainaži was revitalized. The Ainaži fleet, sunken in the war, had completely barricaded the harbor and had to be removed.
Between 1918 and 1940, as Latvia regained its independence, Ainaži underwent a revival. Nevertheless, the Ainaži fleet, having been lost in the war, had sealed off the harbor and required removal.