Original: Following the Partition of India in 1947, Dhaka became the capital of East Pakistan.
Simplified: Then it became a part of Pakistan as part of the Partition of India on 15 August 1947. Bangladesh was then called East Pakistan, and Dacca (Dhaka) became provincial capital of East Pakistan.