The Mad King was Aerys II (the father of Danaerys, Viserys, and Rhaegar). He was killed about 15 years prior to the start of Game of Thrones , and although I'm not watching it, just based on Fire and Blood, the events of House of the Dragon are approximately 300 years prior to the events of Game of Thrones.