The Investiture controversy or Investiture contest was a conflict between church and state in medieval Europe over the ability to appoint local church officials through investiture. By undercutting imperial power, the controversy led to nearly 50 years of civil war in Germany.