Which of the following did Austria-Hungary demand of Serbia in its ultimatum?

A. immediate surrender and integration back into the empire
B. a formal apology by Serbian leaders and a promise to end investigations
C. an end to all anti-Austrian agitation and punishment of any guilty official
D. to sever all alliances with Germany and Russia immediately

C. An end to all anti-Austrian agitation and punishment of any guilty official. This was one of the demands made by Austria-Hungary in its ultimatum to Serbia in July 1914, which ultimately led to the outbreak of World War I.