During the
Japanese occupation of the Dutch East Indies, Kartawinata enlisted in the
Pembela Tanah Air (PETA) military unit, and he became a
daidancho (battalion commander) there. Following the
proclamation of Indonesian independence, Kartawinata became the
People's Security Agency (BKR) commander in the
Priangan region, and he later was appointed as commander of the 3rd Division of the newly formed
People's Security Army (TKR), covering the same area. This division was the predecessor of what is today the
Siliwangi Division. On 24 November 1945, under pressure from nationalist youths (
pemuda) following the outbreak of the
Battle of Surabaya, Kartawinata organized an attack against British forces stationed in Bandung - planned to be a general attack, but in practice only limited and scattered fighting took place. He was later replaced as division commander by
Abdul Haris Nasution. ==Politics==