During World War II and the Indonesian war of independence, control of Balai Pustaka changed hands twice. After the Dutch surrendered, the Japanese gave control of Balai Pustaka over to the native Indonesians. It was later retaken by the Dutch in July 1947, and then formally returned to Indonesian control in 1949 when the Dutch formally acknowledged Indonesia's independence.