Kuching is the third capital of Sarawak, founded by the representative of the Sultan of Brunei, Pengiran Indera Mahkota in 1827. Prior to the founding of Kuching, the two past capitals of Sarawak were Santubong, founded by Sultan Pengiran Tengah in 1599, and Lidah Tanah, founded by Datu Patinggi Ali in the early 1820s. Sarawak was a part of the Sultanate of Brunei before it was ceded to British adventurer James Brooke, who ruled it as his personal kingdom from 24 September 1841. The official declaration was not made until 18 August 1842. Brooke took over as a reward for helping to bring about a peaceful settlement facing Bidayuh uprising against the Sultan of Brunei.
Kuching became the seat of the Brooke government and underwent remarkable changes. As the administrative capital, it was the focus of attention and development. Some of the first things James Brooke did was to introduce a code of laws and build his residence on a site at the northern bank of the Sarawak River. The present-day Astana (Palace), which is now the official residence of the Governor of Sarawak, is next to the original Brooke building.
Under James Brooke, piracy and headhunting were banned and law and order enforced. However, Kuching remained cramped and lacking in facilities. It was not until 1868 when Charles Brooke became the Second Rajah that greater efforts were made to upgrade the town. Drainage was improved, new buildings and streets sprang up and old shophouses were replaced with brick ones.
The Brooke Administration was given the status of Protectorate under Rajah Charles Brooke's rule and was placed behind the Indian Rajas and Princes. By the end of the Charles Brooke rule, Kuching had grown from a small ramshackle place into a town with attractive Victorian-styled Government buildings and telecommunication service. Sampans (small boats) and trains were the primary mode of transport.
Kuching continued to prosper under Charles Vyner Brooke, who succeeded