After her husband's death, Mary ruled as regent for their son James III of Scotland until her own death three years later. Mary was drawn into the Wars of the Roses taking place in England at this time. She appointed Bishop James Kennedy as her chief advisor; their companionship was described as well-functioning despite the fact that the bishop favoured an alliance with the Lancastrians, while Mary at first wanted to continue playing off the warring parties in England against each other.