What was the most powerful organization during medieval times?

The Church