Jakarta is Indonesia's capital and largest city. Located on an estuary of the Ciliwung River, on the northwestern part of Java, the area has long sustained human settlement. Historical evidence from Jakarta dates back to the 4th century AD, when it was a Hindu settlement and port. The city has been sequentially claimed by the Indianized kingdom of Tarumanagara, the Hindu Sunda Kingdom, the Muslim Banten Sultanate, and by Dutch, Japanese, and Indonesian administrations. The Dutch East Indies built up the area, before it was taken during World War II by the Empire of Japan and finally became independent as part of Indonesia.

Jakarta has been known by several names. It was called Sunda Kelapa during the Sunda Kingdom period and Jayakarta, Djajakarta, or Jacatra during the short period of the Banten Sultanate. Thereafter, Jakarta evolved in three stages. The "old city", close to the sea in the north, developed between 1619 and 1799 during the era of the VOC. The "new city" to the south evolved between 1809 and 1942 after the Dutch government took over control of Batavia from the failed VOC whose charter expired in 1799. The third was the development of modern Jakarta since the proclamation of independence in 1945. Under the Dutch, it was known as Batavia (1619–1945) and was later known as Djakarta (in Dutch) or Jakarta during the Japanese occupation and modern period.See also Perfected Spelling System as well as Wikipedia:WikiProject Indonesia/Naming conventionsLesson: Old Indonesian Spellings . StudyIndonesian. Retrieved on 2013-07-16.

For a more detailed history of Jakarta before the proclamation of Indonesian independence, see Batavia, Dutch East Indies.

Early kingdoms (4th century AD) The coastal area and port of Jakarta in northern West Java has been the location of human settlement since the 4th century BC Buni culture. The earliest historical record discovered in Jakarta is the Tugu inscription, which was discovered in Tugu sub-district, North Jakarta. It is among the oldest inscriptions in Indonesian history. The area was part of the Indianized kingdom of Tarumanagara.

In AD 358, King Purnawarman established Sundapura, located on the northern coast of West Java, as the new capital city for the kingdom. The capital of Tarumanagara kingdom was most probably located somewhere between Tugu sub-district North Jakarta and Bekasi Regency West Java. Purnawarman left seven memorial stones across the area, including the present-day Banten and West Java provinces, consisting of inscriptions bearing his name.

Sunda Kingdom (669–1527)

After the power of Tarumanagara declined, its territories became part of the Sunda Kingdom. According to the Chinese source, Chu-fan-chi, written by Chou Ju-kua in the early 13th Century, the Sumatra-based kingdom of Srivijaya ruled Sumatra, the Malay peninsula, and western Java (known as Sunda). The port of Sunda was described as strategic and thriving, with pepper from Sunda renowned for its supreme quality. The people of the area worked in agriculture and their houses were built on wooden piles.

One of the ports at the mouth of a river was renamed Sunda Kelapa or Kalapa (Coconut of Sunda), as written in Hindu Bujangga Manik, manuscripts from a monk's lontar and one of the precious remnants of Old Sundanese literature.Bujangga Manik Manuscript which is now located at the Bodleian Library of Oxford University in England, and travel records by Prince Bujangga Manik.() The port served Pakuan Pajajaran (present day Bogor), the capital of the Sunda Kingdom. By the fourteenth century, Sunda Kelapa became a major trading port for the kingdom.

Accounts of 16th century European explorers make mention of a city called Kalapa, which apparently served as the primary port of a Hindu kingdom of Sunda. In 1522, the Portuguese secured Luso-Sundanese padrão, a political and economic agreement with the Sunda Kingdom, the authority of the port. In exchange for military assistance against the threat of the rising Islamic Javan Demak Sultanate, Prabu Surawisesa, the king of Sunda at that time, granted them free access to the pepper trade. Portuguese who were in the service of the sovereign made their homes in Sunda Kelapa.

Banten Sultanate (1527–1619)

To prevent Portuguese gaining a foothold on Java, Fatahillah, on behalf of the Demak attacked the Portuguese in Sunda Kelapa in 1527 and succeeded in conquering the harbour on 22 June, after which Sunda Kelapa was renamed Jayakarta. Later, the port became a part of the Banten Sultanate, located west from Jayakarta.

By the late 16th century, Jayakarta was under the rule of the Sultanate of Banten. Prince Jayawikarta, a follower of the Sultan of Banten, established a settlement on the west banks of the Ciliwung River, erecting a military post to control the port at the mouth of the river.

Dutch Batavia (1610–1942)

Dutch East India Company (1610–1800) Dutch mercantile activity to East Indies commenced in 1595. Over the next 25 years there was contention between the Dutch and British on the one hand, and between the Sultanate of Banten and Prince Jayawikarta on the other.

In 1602, the Dutch government granted a monopoly on Asian trade to the Dutch East India Company ( (VOC); literally United East Indian Company).Drakeley S. The History of Indonesia. Greenwood, 2005. de Vries J, van der Woude A. The First Modern Economy. Success, Failure, and Perseverance of the Dutch Economy, 1500–1815. Cambridge University Press, 1997. In 1603, the first permanent Dutch trading post in Indonesia was established in Bantam, West Java. In 1610, Prince Jayawikarta granted permission to Dutch merchants to build a wooden godown and houses on the east bank of the Ciliwung River, opposite to Jayakarta. This outpost was established in 1611.Ricklefs MC. A History of Modern Indonesia since c.1200. MacMillan, 2nd edition, 1991ISBN 0333576896

The rivalry was ultimately resolved in 1619, when the Dutch established a closer relationship with Banten and militarily intervened at Jayakarta, where they assumed control of the port after destroying the existing city. The new city built on the site was officially named as Batavia on January 18, 1621, from which the Dutch East Indies eventually ruled the entire region. Batavia under VOC control was essentially a Company Town, under the authority of a governor-general in Batavia and a board of directors in Amsterdam that served the Dutch merchants in the region, predominantly the spice trade between Europe and the Moluccas. The administrative center of this new town is the Batavia Castle.

During the era of the VOC, Batavia was centered on the so-called Benedenstad or "Lower City". It consisted of the walled Kota, the older harbor at Sunda Kelapa, and the Chinese quarter at Glodok. In the middle of 18th century, Batavia also included the outskirts area along the canal of the Molenvliet (now Jalan Gajah Mada and Jalan Hayam Wuruk), the Noordwijk (now Jalan Juanda), the Rijswijk (now Jalan Veteran), along Gunung Sahari, and Jacatraweg (Jalan Pangeran Jayakarta). Also included were the markets at Tanah Abang and Senen, Jakarta's oldest markets.

Batavia was under VOC control until the Company went bankrupt and its charter expired in 1799.

Dutch East Indies (1800–1942)

After the Vereenigde Oost-Indische Compagnie (VOC) went bankrupt and was dissolved in 1800, the Batavian Republic nationalized its debts and possessions, expanding all of the VOC's territorial claims into a fully-fledged colony named the Dutch East Indies. Batavia evolved from the site of the company's regional headquarters into the capital of the colony. The city gradually expanded to the south.

During the period, administrative buildings were relocated to the area then known as Weltevreden, e.g. south of the Koningsplein, the Waterlooplein and Rijswijk (Jalan Veteran). The area, then known as Weltevreden, which include the Koningsplein, Rijswijk, Noordwijk, Tanah Abang, Kebon Sirih, and Prapatan became a popular residential, entertainment and commercial district for the European colonial elite. The name Weltevreden lingered until 1931 when it officially became known as Batavia Centrum (Central Batavia).

The period also saw development of the Pasar Baru market in the 1820s, the completion of Tanjung Priok port in 1886, the development of Menteng and Gondangdia garden city in the 1910s, and the inclusion of Meester Cornelis (now Jatinegara) into Jakarta in 1935.

Japanese occupation (1942–1945)

On 5 March 1942, Batavia fell to the Japanese. The Dutch formally surrendered to the Japanese occupation forces on 9 March 1942, and rule of the colony was transferred to Japan. The city was renamed Jakarta (officially ジャカルタ特別市 Jakaruta tokubetsu-shi, Special Municipality of Jakarta, in accordance with the special status that was assigned to the city).

To strengthen its position in Indonesia, the Japanese government issued Act No. 42 1942 as part of the "Restoration of the Regional Administration System". This act divided Java into several Syuu ("Resident Administration" or Karesidenan) that were each led by a Bupati (Regent). Each Syuu was divided into several Shi ("Municipality" or Stad Gemeente) that were led by Wedanas ("District Heads"). Below a Wedana was a Wedana Assistant ("Sub-district Head"), who, in turn, oversaw a Lurah ("Village Unit Head"), who, in turn, was responsible over a Kepala Kampung ("Kampung Chief").

A schichoo ("Mayor") was superior to all of these officials, following the law created by the Guisenken ("Head of the Japanese Imperial Administration"). The effect of this system was a "one-man rule" structure with no councils or representative bodies. The first schichoo of Jakarta was Tsukamoto and the last was Hasegawa.

The economic situation and the physical condition of Indonesian cities deteriorated during the occupation, including Jakarta. Beautiful colonial buildings and hotels were converted into military barracks. Many buildings were vandalized, as metal was needed for the war, and many iron statues from the Dutch colonial period were taken away by the Japanese troops. Among the destroyed colonial landmarks during the Japanese occupation were the statue of Jan Pieterszoon Coen at Waterlooplein.

In 1943, the Japanese Imperial administration slightly revised the administration of Jakarta by adding a special counseling body. This agency was composed of twelve local Javanese leaders who were regarded as loyal to the Japanese; among them were Suwiryo (who became the vice for Jakarta's schichoo) and Dahlan Abdullah.

National revolution era (1945–1949)

After the collapse of Japan in 1945, the area went through a period of transition and upheaval during the Indonesian national struggle for independence. During the Japanese occupation and from the perspective of the Indonesian nationalists who declared independence on 17 August 1945, the city was renamed Jakarta. After the war, the Dutch name Batavia was internationally recognized until full Indonesian independence was achieved on 27 December 1949 and Jakarta was officially proclaimed the national capital of Indonesia.

Following the surrender of the Japanese, Indonesia declared its independence on 17 August 1945. The proclamation was enacted at Jalan Pegangsaan Timur No. 56 (now Jalan Proklamasi), Central Jakarta, with Suwiryo acting as the committee chairman. Suwiryo was recognised as the first mayor of Jakarta Tokubetsu Shi. The position was soon altered to Pemerintah Nasional Kota Jakarta ("Jakarta City National Administration").

On 19 September 1945, Sukarno held his Indonesian independence and anti-colonialism/imperialism speech, during Rapat Akbar or grand meeting at Lapangan Ikada, now the Merdeka Square. The grand meeting would start a period of national revolution in Indonesia.Lapangan Merdeka / Monas. History Of Merdeka Square.