The United Kingdom also transferred to the government of Ireland the Treaty Ports (Queenstown (Cobh), Berehaven and Lough Swilly). The use of these ports had been retained by the United Kingdom under the Anglo-Irish Treaty that ended the Anglo-Irish War.