Around this time, the local Korčula rulers began to exercise diplomacy and legislate a town charter to secure the independence of the island, particularly with regard to internal affairs, given its powerful neighbors.