contestada

what was the investiture contest? How did this spark conflict between the church and state?