Although parts of Ceylon were controlled in turn by the Portuguese and Dutch for three centuries, the modern bureaucracy was a product of British rule from the beginning of the nineteenth century to the grant of independence in 1948 and shared much of the heritage of the vastly larger and more famous bureaucracy of British India.