Complex sentence: The king invited Padmasambhava to Tibet where he used his tantric powers to subdue the evil deities he encountered along the way, eventually receiving the Emperor's wife, identified with the dakini Yeshe Tsogyal, as a consort.
Split into simpler sentences: The king invited Padmasambhava to Tibet where he used his tantric powers to subdue the evil deities he encountered along the way. He received the Emperor's wife, identified with the dakini Yeshe Tsogyal, as a consort.