Derry's walls were originally built by the Irish Society between 1613 and 1619. They were built with the intention of protecting the Scottish and English planters that had moved to Ulster as part of the Plantation of Ulster that had been established by James I. It was a direct consequence of the previous settlement being destroyed by Irish chieftain Cahir O'Doherty during O'Doherty's rebellion. As a result of the building of the city's defences by the Irish Society, which was a consortium of livery companies based out of the City of London, the city was officially renamed Londonderry in the 1613 royal charter. This is what has subsequently led to the naming dispute for the city and county of Derry/Londonderry.