Complex sentence: Malaysia gained its independence from British colonial empire in 1957, and thereafter declared its official state religion as Islam, and adopted a constitution that protects freedom of religion (such as practice of Hinduism) but also restricts religious freedom.
Split into simpler sentences: Malaysia gained its independence from British colonial empire in 1957, thereafter declared its official state religion as Islam, and adopted a constitution that is mixed. On one hand, it protects freedom of religion (such as practice of Hinduism), but on the other hand Malaysian constitution also restricts religious freedom.