The territory of modern Bangladesh was a stronghold of many Buddhist and Hindu dynasties in ancient history.