Non-Western nations were in a weak state and Western powers had strong economies, governments, and armed forces and they had superior technology.
People opposed it through wars of resistance and nationalist movements and by adopting Western technologies and economic reforms.