Words and phrases learned from watching movies and dramas

In the historical K/Dramas the queen is addressed by something that sounds like tagy-mama. I haven’t been able to find the correct Korean word. Anyone know?