On August 10, 1710 fortress was taken by the Russians, when Commander surrendered to general field marshal Boris Sheremetev after being assured of free escort for his troops. In accordance with terms of the treaty of Nystad (1721) Daugavgrīvas fortress remained under Russian rule until Latvia's independence in 1918.