Both are based on historic figures and the time line of the story from both shows are set in around the same timeline but told from different sides (queen seon duk is silla and gye baek is Baekje and both countries historically have interchange with one another) , different perspectives.