How did the Islam become the most dominant religion in Indonesia and Malaysia despite their history of being colonized by European countries?

by Badstaring
Sababa1236

Well they were Muslim before they were colonized by the Europeans.