Charlemagne 's reply stated that it was his function to defend the Church , and the function of the Pope to pray for the realm and for the victory of his army .
Charlemagne replied that it was his function to defend the church and the Pope 's to pray for the kingdom and for victory of the army .