The Doctor deduces that the Carrionites intend to use the powerful words of "Love's Labour's Won" to break their species out of imprisonment. The Doctor confronts Lilith, who explains that the three witches were released from their banishment by Shakespeare's genius words after he lost his son Hamnet. Lilith temporarily stops one of the Doctor's two hearts and flies to the Globe Theatre. Shakespeare fails to stop the play from being performed. The actors speak the last lines of the play. A portal opens up, allowing the Carrionites back into the universe. The Doctor tells Shakespeare that only he can find the words to close the portal. Shakespeare improvises a short rhyming stanza but is stuck for a final word until Martha blurts out Expelliarmus. The Carrionites and all the copies of "Love's Labour's Won" are sucked back through the closing portal.