The election of Ernst of Bavaria expanded the local feud into a more German-wide phenomenon. The pope committed 55,000 crowns to pay soldiers to fight for Ernst, and another 40,000 directly into the coffers of the new Archbishop. Under the command of his brother, Ernst's forces pushed their way into Westphalia, threatening Gebhard and Agnes at their stronghold at Arensburg. Gebhard and Agnes escaped to the rebellious provinces of the Netherlands with almost 1000 cavalry, where Prince William gave them a haven in Delft. There, Gebhard solicited the impecunious William for troops and money. After William's assassination in July 1584, Gebhard wrote to Queen Elizabeth requesting assistance. Elizabeth responded toward the end of 1585, directing him to contact Robert Dudley, 1st Earl of Leicester, her deputy with the rebellious Dutch, and recently commissioned as the commander-in-chief of her army in the Netherlands. Elizabeth had her own problems with adherents of her cousin Mary, Queen of Scots, and the Spanish.

Based on the above article, answer a question. Which event happened first, Gebhard wrote to Queen Elizabeth or Elizabeth responding?
Gebhard wrote to Queen Elizabeth