East Pakistan seceded from its union with West Pakistan in 1971 and was renamed Bangladesh .